[4997] in SIPB bug reports
Re: mosaic outputs cruft to stdout
daemon@ATHENA.MIT.EDU (Ken Raeburn)
Fri Oct 28 11:04:51 1994
From: Ken Raeburn <raeburn@cygnus.com>
Date: Fri, 28 Oct 1994 11:02:05 -0400
To: jhawk@MIT.EDU
Cc: bug-sipb@MIT.EDU
In-Reply-To: jhawk@MIT.EDU's message of Thu, 27 Oct 1994 21:41:54 EDT <9410280141.AA15687@yaz-pistachio.MIT.EDU>
From: jhawk@MIT.EDU
Date: Thu, 27 Oct 1994 21:41:54 EDT
script, and perhaps using ``nice'' on ``Mosaic''.
I don't see why... Maybe to strongly encourage users to get the
capitalization right? :-)
2) The lynx script shouldn't use:
exec /afs/sipb.mit.edu/project/outland/decmipsbin/lynx.real $@
because this does the wrong thing when you do a
lynx a b "c d" e
(it loses track of the fact that word 3 is c\ d and not just c).
Instead it should be:
exec /afs/sipb.mit.edu/project/outland/decmipsbin/lynx.real "$@"
which solves this problem quite well (and is the standard solution).
Except that it does the wrong thing when no arguments are provided --
under many (most?) versions of sh, it passes a single empty string.
The "more correct" solution I've seen is:
exec foo ${1-"$@"}
Some shells do get a simple "$@" right; most I've used don't.
I don't think I've used any that get ${1-"$@"} wrong.