[6424] in SIPB bug reports

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

Re: whats : SunOS 5.5.1

daemon@ATHENA.MIT.EDU (Salvatore Valente)
Wed Jul 2 21:18:24 1997

Date: Wed, 2 Jul 1997 21:18:15 -0400
To: Brett David Rosen <bdrosen@MIT.EDU>
Cc: bug-sipb@MIT.EDU
In-Reply-To: "[6419] in SIPB bug reports"
From: Salvatore Valente <svalente@MIT.EDU>


Hi.  You wrote:

	Under Solaris, the whats script uses -n for nonewline
	instead of \c .

Which is fine as long as you have /usr/ucb before /usr/bin in your path.

	Any reason to not use something like this?
	n=`echo -n`
	if [ "$n" = "-n" ]
	then
	        c='\c' ; n=''
	else
	        n='-n' ; c=''
	fi

One possible reason is that "whats" should specify the full pathname
for echo (and other commands).  Of course, your way makes it really
portable, so I used it.

Thanks!
-Sal.

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