| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
To: bug-sipb@MIT.EDU
Date: Tue, 01 Jul 1997 11:00:10 EDT
From: Brett David Rosen <bdrosen@MIT.EDU>
Under Solaris, the whats script uses -n for nonewline
instead of \c .
It has:
n='-n' # Use '' if your echo uses '\c'
c='' # Use '\c' if your echo uses it
Any reason to not use something like this?
n=`echo -n`
if [ "$n" = "-n" ]
then
c='\c' ; n=''
else
n='-n' ; c=''
fi
Thanks
Brett
| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |