Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Oct 2000 15:30:02 -0700 (PDT)
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/22356: mkdir
Message-ID:  <200010272230.PAA31671@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/22356; it has been noted by GNATS.

From: Brooks Davis <brooks@one-eyed-alien.net>
To: unixoid@pisem.net
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/22356: mkdir
Date: Fri, 27 Oct 2000 15:22:55 -0700

 On Fri, Oct 27, 2000 at 03:05:36PM -0700, unixoid@pisem.net wrote:
 > If folder is created with '-' at the beginning of its name then
 > commands used in this folder take its name as parameter.
 
 This is not a bug.  UNIX file names can contain dashes and they may
 appear any where in a file name.  Well written programs support the "--"
 arguemnt to signal that any further arguments should not be parsed as
 options.  For example "mkdir -- -blah; rmdir -- -blah" works just fine.
 
 If you find dealing with such files annoying, don't create such files.
 To quote Terry Lambert:
 
 If you aim the gun at your foot and pull the trigger, it's UNIX's job to
 ensure reliable delivery of the bullet to where you aimed the gun (in this
 case, Mr. Foot). -- Terry Lambert, FreeBSD-Hackers mailing list.
 
 -- Brooks
 
 -- 
 Any statement of the form "X is the one, true Y" is FALSE.
 


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




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