From owner-freebsd-bugs Fri Oct 27 15:20: 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 D7FE337B479 for ; Fri, 27 Oct 2000 15:20:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA28385; Fri, 27 Oct 2000 15:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Fri, 27 Oct 2000 15:20:02 -0700 (PDT) Message-Id: <200010272220.PAA28385@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: misc/22356: mkdir Reply-To: Peter Pentchev 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: Peter Pentchev To: unixoid@pisem.net Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/22356: mkdir Date: Sat, 28 Oct 2000 01:17:54 +0300 On Fri, Oct 27, 2000 at 03:05:36PM -0700, unixoid@pisem.net wrote: > >Number: 22356 > >Category: misc > >Synopsis: mkdir [snip] > >Description: > Sorry, i very bad speak english. You me that so have understood. > If folder is created with '-' at the beginning of its name then commands used in this folder take its name as parameter. > >How-To-Repeat: > If folder is created with '-' at the beginning of its name then commands used in this folder take its name as parameter. Why don't you give some examples? Like the mkdir command, the commands you are trying to execute after that, and such? But first, a question - are you trying to execute commands *in* that directory, or *on* it? I mean, if you have created a dir named 'test', are you doing e.g. 'cd test; ls' or are you trying to do 'ls -test'? If it is "ls -test" that is bugging you, then have you tried putting '--' immediately before the directory name, as in 'ls -- -test'; '--' is the traditional (GNU originated, I think) way of separating a command's flags from its other parameters, so getopt() and similar functions do not try to parse the parameters starting with '-' as options. G'luck, Peter -- If I had finished this sentence, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message