Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Fix the echo -n problem in 10.5' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Fix the echo -n problem in 10.5
Authored by: mluger on Nov 20, '07 03:00:29PM

1) It is very stupid to change the shells like this, it could break system scripts..


2) If you just did a 'man echo' you could have read that you can use this:

echo "Insert name:\c"

I quote:

"The following option is available:

-n Do not print the trailing newline character. This may also
be achieved by appending `\c' to the end of the string."

"Some shells may provide a builtin echo command which is similar or
identical to this utility. Most notably, the builtin echo in sh(1)
does not accept the -n option. Consult the builtin(1) manual page."


3) If you want another shell. Ctrl-click on your loginname at the account settings in the Sytem Preferences. This give you access to 'Advanced options'. There you can change your login shell.



[ Reply to This | # ]