Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jul 2000 15:35:34 -0400
From:      Bill Fumerola <billf@chimesnet.com>
To:        Sheldon Hearn <sheldonh@uunet.co.za>
Cc:        obrien@FreeBSD.org, Archie Cobbs <archie@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sbin/ifconfig ifconfig.c
Message-ID:  <20000719153534.D51462@jade.chc-chimes.com>
In-Reply-To: <6828.964034781@axl.ops.uunet.co.za>; from sheldonh@uunet.co.za on Wed, Jul 19, 2000 at 09:26:21PM %2B0200
References:  <20000719152039.B51462@jade.chc-chimes.com> <6828.964034781@axl.ops.uunet.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 19, 2000 at 09:26:21PM +0200, Sheldon Hearn wrote:

> > The main reason is that ? is a (for all intents and purposes) a reserved
> > shell character and typing:
> > 
> > foo -\?
> 
> Right, that makes sense, I suppose.  I must admit that I've never been
> bitten by this myself, but I suppose it'd be problematic if one had a
> file in the working directory whose name was composed of two characters,
> the first of which was a dash.
> 
> Talk about edge cases. :-)

[hawk-billf] /usr/ports/net/ethereal/pkg > ls -?
zsh: no matches found: -?
[hawk-billf] /usr/ports/net/ethereal/pkg > ls -\?
ls: illegal option -- ?
usage: ls [-ACFGHLPRTWacdfgiklnoqrstu1] [file ...]

It's worse then just the edge case, the shell is going to try and expand
it no matter what.

> But I hear you.  It was a bit presumptuous to call the way I do things
> "the UNIX way" just because I can't remember who taught it to me. :-)

We all make mistakes, and I made this one too :->

-- 
Bill Fumerola -	Network Architect, BOFH / Chimes, Inc.
                billf@chimesnet.com / billf@FreeBSD.org





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




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