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:

#!/usr/bin/ksh
echo "Test \c"

If you run this without doing anything you will see:

[EMAIL PROTECTED] ~]$ ./test.ksh
Test \c
[EMAIL PROTECTED] ~]$

If you put a symbolic link to /bin/etc in /usr/local/bin then you will
get

[EMAIL PROTECTED] ~]$ ./test.ksh
Test [EMAIL PROTECTED] ~]$

Which is correct since \c should suppress the trailing new-line.

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.

Later,
Tom


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

Reply via email to