Bug 22354

Summary: When making a dir, at the beginning initially which before name to put "-",when using a command in in this directory this file is taken as for parameter
Product: Base System Reporter: unixoid <unixoid>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description unixoid 2000-10-27 20:40:01 UTC
When making a dir, at the beginning initially which before name to put "-",when using a command in in this directory this file is taken as for parameter.

How-To-Repeat: When making a dir, at the beginning initially which before name to put "-",when using a command in in this directory this file is taken as for parameter.
Comment 1 jedgar 2000-10-27 21:01:36 UTC
On Fri, Oct 27, 2000 at 12:32:07PM -0700, unixoid@pisem.net wrote:
> 
> >Number:         22354
> >Category:       misc
> >Synopsis:       When making a dir, at the beginning initially which before name to put "-",when using a command in in this directory this file is taken as for parameter
> 
> >How-To-Repeat:
> When making a dir, at the beginning initially which before name to put "-",when using a command in in this directory this file is taken as for parameter.

Use: mkdir -- -dirwithadash

(the -- denotes end of options)

-- 
Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org
--------------------------------------------------------
FreeBSD: The Power To Serve   -   http://www.FreeBSD.org
Comment 2 Will Andrews freebsd_committer freebsd_triage 2000-10-27 21:16:10 UTC
State Changed
From-To: open->closed

User needs to read the manual page.