[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cd to dir with dashes



On Sun, Feb 02, 2003 at 06:45:53AM -0800, Bill Moseley wrote:
> Hum, what's the trick to cd in bash in this case?
> 
> moseley@bumby:~/wusage-accounts$ ls

"cd -- --SIMPLE-ACCOUNT--" or "cd ./--SIMPLE-ACCOUNT--"

The -- tells cd that everything after that is not a command line option,
it works with most tools, e.g. 'grep -- --foo somefile"


Stephen Rüger

-- 
All unser Übel kommt daher, daß wir nicht allein sein können.
-- Schopenhauer

Attachment: pgpe0h1uyrDJL.pgp
Description: PGP signature


Reply to: