|> I have a problem which I dont understand and am looking for
|> help. I have a user who is running csh and the path is set
|> to use the version of echo whose syntax is 'echo -n abc'
|> rather than 'echo abc\c'. Now this user invokes a shell script
|> whose first line is '#!/bin/ksh'. In this script is the
|> command "echo 'abc\c'". And the problem is that the echo produces
|> the string abc\c. In the ksh echo is a built-in using the \c notation.
|> So how come it aint doing it?
|>
|> Any ideas? Appears invoking the shell is not having it grab
|> the built-ins.
|>
|> Will Renkel - Motorola - Cellular
I maintain ksh (88f) at the same facility where Will works and have
talked to him off-line about this.
No problem exists. Ksh is using the builtin. On our system, Sun OS 4.0.3,
it appears the echo builtin can behave differently depending on where
your $PATH has /bin specified.
The ksh documentation mentions something about this too:
Again, no problem exists.Quote:>ECHO_N Set when /bin/echo -n does not echo at all. This causes the
> echo builtin to handle echo like BSD echo when at run time
> the shell would find echo in the /bin directory.
--------------------------------------+------------------------------------
James J. Yorton | Telephone: +1 708-632-6695
Motorola Inc., General Systems Sector |
Radio Telephone Systems Group | uucp: ...!uunet!motcid!yorton
Mail Drop: IL27-3227 |
Arlington Heights, IL 60004 |