🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.std.unix
Article #401

Re: A convention for -file

#401
From: Moderator, John Quarterman
Date: Fri, 07 Nov 1986 13:57
27 lines
1897 bytes
From: weemba@brahms.berkeley.edu (Matthew P Wiener)
Date: Fri, 7 Nov 86 03:02:53 PST
Organization: University of California, Berkeley

In article <6239@ut-sally.UUCP> seismo!mcvax!guido (Guido van Rossum) writes:
>What nobody seems to have noticed about the proposed "solution" to file
>names starting with "-" by prefixing another "-", is that it would break
>shell file name expansion.

Of course, but it is trivial (if ugly) to get around, using backquotes.

The reason I am interested is because it came up years ago.  I overloaded
the command line with arguments so that my program could run on our high
speed batch only machine.  And there was one die hard from our batch machine
who liked punctuation marks as his first character.  (The other machine had
a completely different argument convention, so there were different taboo
names.)  And yes, I had strings and post-filename flags in the command line
to boot.

If getopt is to be the standard, a -+ flag to turn flags back on should be
added.  Except for -- -+, meaning file -+.  (But then, somebody is going to
break on that by having a null name show up in between a -- and -+ from an
uncareful $variable expansion.  Weee!)

ucbvax!brahms!weemba	Matthew P Wiener/UCB Math Dept/Berkeley CA 94720

Volume-Number: Volume 8, Number 48
Technical Details
Message-ID: <6280@ut-sally.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!im4u!ut-sally!std-unix
References: <6239@ut-sally.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!im4u!ut-sally!std-unix
From: std-unix@ut-sally.UUCP (Moderator, John Quarterman)
Newsgroups: mod.std.unix
Subject: Re: A convention for -file
Message-ID: <6280@ut-sally.UUCP>
Date: Fri, 7-Nov-86 08:57:13 EST
Article-I.D.: ut-sally.6280
Posted: Fri Nov  7 08:57:13 1986
Date-Received: Sat, 8-Nov-86 04:59:19 EST
References: <6239@ut-sally.UUCP>
Organization: IEEE P1003 Portable Operating System for Computer Environments Committee
Lines: 27
Approved: jsq@sally.utexas.edu