John H. Robinson, IV wrote:

Ralph Shumaker wrote:
(Why isn't the documentation for echo clear about this? It seems to assume that the reader already knows it.)

Because echo is doing what it is told, by your shell. You probably
should spend some time reading the man page of your $SHELL. It really
quite illuminating what the modern shells (bash, zsh) can do.

\ being used as quoting is very common in the UNIX world.

-john


Thank you john. But be that as it may, what would be so hard about adding a little note in the echo man page "Note: \r, \n, (and the like) need to be quoted or escaped." or perhaps "This man page assumes a familiarity with your $SHELL."?

(I *have* spent "some time reading the man page of [my] $SHELL" when I know I need to learn something there. Perhaps you have memorized its contents, but for a greenhorn like me, I'm lucky to be scratching the surface in other places where I've been clawing at. Linux is too large to learn the whole thing. Bash is too large, too. I can spend time studying things I don't need right now, but that's a recipe for boredom and burnout. There's plenty of other things to learn, things that I can put to use right now, and do, hence my questions about echo . I didn't know it was bash that was derailing me, and the echo man page gave me no hint to look there. The See Also section of the echo man page only directs me to look at info coreutils echo which gives even *less* information.)


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to