Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: backslash problems?
- X-seq: zsh-users 1103
- From: Andrew Main <zefram@xxxxxxxxx>
- To: john.cooper@xxxxxxxxxxxxxx
- Subject: Re: backslash problems?
- Date: Mon, 27 Oct 1997 11:53:48 +0000 (GMT)
- Cc: zsh-users@xxxxxxxxxxxxxxx, john.cooper@xxxxxxxxxxxxxxx
- In-reply-to: <19971027113104140.AAA348@TENDLE> from "John Cooper" at Oct 27, 97 11:31:05 am
John Cooper wrote:
>$ echo "foo\bar\baz"
>foaaz
echo gets the argument 'foo\bar\baz', and translates '\b' to backspace.
>$ echo "foo\\bar\\baz"
>foaaz
>$ echo 'foo\bar\baz'
>foaaz
Same.
>$ echo 'foo\\bar\\baz'
>foo\bar\baz
echo gets the argument 'foo\\bar\\baz', and translates '\\' to '\'.
>bash$ echo "foo\bar\baz"
>foo\bar\baz
This echo desn't translate '\b'. Use "setopt BSD_ECHO" to get this
behaviour under zsh.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author