|
|||||||||||
|
Re: linux-ipsec: args from files
From: Henry Spencer <henry(at)spsystems.net>
Date: Wed Jul 22 1998 - 15:17:45 EDT
Is there a specific reason not to do this, apart from the general issues discussed below? Note that the leading-slash convention was your idea! > Ditto the DOS-inspired "@" syntax.
I can't speak for any others involved, but I'm not familiar enough with DOS for its syntax to inspire (?) me. It was just an obvious choice of metacharacter. But your / suggestion looked better... The addition of "./" was to provide a way to do relative pathnames without excessive inconvenience. > If there is a need in particular places for the option to take a
The problem with this is that it doesn't generalize. Grep is an easy case: it has *one* argument that needs this treatment, and it's helpfully the first argument. We've got multiple arguments that might want it, at semi-random places in the command line. A positional syntax (which is what we have now) where arguments pop in and out depending on options is a hopeless mess. Putting the options in the positions where the arguments normally go is a headache for parsing, and is not really any more consistent with normal Unix practice (which does not usually intermix options and positional arguments, and certainly doesn't routinely allow one to substitute for the other). I see two half-decent ways to deal with this. The first is to abandon the positional syntax completely, in favor of a syntax that is 100% options:
ipsec spi --dest 10.1.2.3 --spi 65 --proto ah --transform md5 --key 0x...
or
Leading slash still seems to me like the least painful of the bunch.
Henry Spencer
henry@spsystems.net
(henry@zoo.toronto.edu)
Received on Wed Jul 22 18:10:57 1998This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:59:24 EDT |
||||||||||
|
|||||||||||