Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

backslash problems?



[I'm not on the mailing list - please copy me on any replies]

I'm Using zsh 3.0.5-nt-beta-0.28 under NT 4.0.

Can someone explain the following behavior - it seems a little surprising to me.

$ echo "foo\bar\baz"
foaaz
$ echo "foo\\bar\\baz"
foaaz
$ echo 'foo\bar\baz'
foaaz
$ echo 'foo\\bar\\baz'
foo\bar\baz


Under bash, it seems more consistent:

$ bash
bash$ echo "foo\bar\baz"
foo\bar\baz
bash$ echo 'foo\bar\baz'
foo\bar\baz
bash$

Thanks,

    --- John



Messages sorted by: Reverse Date, Date, Thread, Author