[6419] in SIPB bug reports

home help back first fref pref prev next nref lref last post

whats : SunOS 5.5.1

daemon@ATHENA.MIT.EDU (Brett David Rosen)
Tue Jul 1 11:00:18 1997

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