From owner-freebsd-arch Wed May 8 16:12:47 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 1D2E437B401; Wed, 8 May 2002 16:12:43 -0700 (PDT) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g48NCfnG473974; Wed, 8 May 2002 19:12:41 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20020508202131.GC19530@FreeBSD.ORG> References: <200205080304.g4834BL42647@green.bikeshed.org> <20020508202131.GC19530@FreeBSD.ORG> Date: Wed, 8 May 2002 19:12:40 -0400 To: "J. Mallett" From: Garance A Drosihn Subject: Re: cvs commit: src/usr.bin/sed main.c sed.1 Cc: arch@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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