From owner-freebsd-bugs Fri Oct 27 15:30: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A957837B479 for ; Fri, 27 Oct 2000 15:30:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA31671; Fri, 27 Oct 2000 15:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Fri, 27 Oct 2000 15:30:02 -0700 (PDT) Message-Id: <200010272230.PAA31671@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Brooks Davis Subject: Re: misc/22356: mkdir Reply-To: Brooks Davis Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/22356; it has been noted by GNATS. From: Brooks Davis 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