Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2002 19:12:40 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        "J. Mallett" <jmallett@FreeBSD.ORG>
Cc:        arch@FreeBSD.ORG
Subject:   Re: cvs commit: src/usr.bin/sed main.c sed.1
Message-ID:  <p05111753b8ff5b1e5228@[128.113.24.47]>
In-Reply-To: <20020508202131.GC19530@FreeBSD.ORG>
References:  <200205080304.g4834BL42647@green.bikeshed.org> <p0511174bb8ff15c41118@[128.113.24.47]> <20020508202131.GC19530@FreeBSD.ORG>

next in thread | previous in thread | raw e-mail | index | archive | help
At 8:21 PM +0000 5/8/02, J. Mallett wrote:
>Keep in mind you're saying "-; is not a valid option",
>which while in practice may be safe, may not be the best
>thing to say.

But consider, for instance:

       /bin/echo test -? somestring
vs:   /bin/echo test -; somestring

if you don't quote the '-;', then the shell will use it
as a command-separator before the command ever sees it.
This seems to be true with sh, csh, and bash on my
freebsd-current system.  This makes '-;' a very awkward
flag for a command to use.  Seems like a nice extension
to getopt(3).

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05111753b8ff5b1e5228>