On 7/5/07, Tom Sightler <[EMAIL PROTECTED]> wrote:
On Thu, 2007-07-05 at 21:39 -0500, inode0 wrote:
> While that might get it to call an external program wouldn't you still
> need to add "-e" to get the desired behavior? And if so, then why not
> add the "-e" to the built-in echo anyway?

You would think so, but it seems to be totally reproducible.  Just write
a simple script like the following:

Yup, it is always embarrassing to actually test something after
posting rather than before. Some old dogs still make that mistake. :)

Even so, I think it may be more appropriate to use getconf to set the
UNIVERSE environment to "att".  This definitely works and gives the
appropriate "echo" behavior without a symlink, but I'm not sure how to
do this globally for all ksh shells, although I'm sure there is probably
a way.

Q12 in the ksh faq addresses this issue - http://www.kornshell.com/doc/faq.html

Of course people with such scripts still need to deal with portability
regardless.

I'm curious what sort of echo statements are in these scripts that
would result in problems if you just add an alias like echo="echo -e"
to the scripts?

John

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to