Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...

Browsing this Thread:   1 Anonymous Users





echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 97
Offline
I would want to see on my prompt something like this:

"test"

but the following does not work:

echo "\"test\""

\ test\""

Why?

Posted on: 12/13 11:09
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 97
Offline
ok this seems to be the solution:

echo "*"test*""

"test"

Posted on: 12/13 12:13
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2013/5/8 8:07
From Germany
Group:
Member
Posts: 14
Offline
Indeed, backslash is C, asterisk is BCPL

Posted on: 12/30 15:47
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 97
Offline
How to print the following chars:

echo "*"*;"
Echo: argument line invalid or too long

echo "*"*|"
Error in command name

1000000$ to solve this question.

Posted on: 1/18 8:14

Edited by Pasquale on 2018/1/19 8:05:03
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 97
Offline
The _pchar and the _mchar are not to set, this solves the second issue, the other remains.

Posted on: 1/19 1:27
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2004/10/30 17:13
From Ireland
Group:
Member
Posts: 2810
Offline
I'd be surprised if you need to escape ; or |

Does this work?:
Echo "*";"

I'm assuming you want this output:
";

Posted on: 1/19 17:32
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 97
Offline
No, it does not work.

Posted on: 1/20 6:23
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2009/9/27 22:09
Group:
Member
Posts: 1057
Offline
Works if you insert a space and shift the cursor over. Is that cheating?

echo " ;*E[2D*""
";

And about the million bucks...

Posted on: 1/23 11:38
Transfer the post to other applications Transfer


Re: echo and quote

Joined:
2017/3/3 13:00
Group:
Member
Posts: 97
Offline
You get 500000$, the second i solved by my self.

Posted on: 1/23 13:13

Edited by Pasquale on 2018/1/24 1:26:01
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4456
2 nikolaos
nikolaos
4183
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 clusteruk
clusteruk
2113
9 damocles
damocles
1789
10 BSzili
BSzili
1531
© 2004-2018 AROS Exec