Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!cbmvax!andy From: andy@cbmvax.UUCP (Andy Finkel) Newsgroups: comp.sys.amiga Subject: Re: Bug (or feature) in 1.3 cd command Message-ID: <6670@cbmvax.UUCP> Date: 21 Apr 89 21:32:44 GMT References: <97@snll-arpagw.UUCP> Reply-To: andy@cbmvax.UUCP (Andy Finkel) Organization: Commodore Technology, West Chester, PA Lines: 36 In article <97@snll-arpagw.UUCP> paolucci@snll-arpagw.UUCP (Sam Paolucci) writes: >Try the following. Create a directory called "dir". Then try to cd into >it by typing "cd dir". It will not work. It comes back with "Bad Args: >Keyword needs an argument". The reason is because cd accepts the >undocumented keyword "DIR". So in order to do the above you have to >type "cd dir=dir". > >Any comment on this from the people at CATS? CD accepts the documented keyword DIR, actually. (either look in your AmigaDOS manual, or type cd ? to see the keywords) The usual way to get around a conflict between a keyword and a filename (or a directory name) is to use quotes, like this: cd "dir" However, specifying the directory by keyword (as you've done) will also work. You can even (under 1.3) make this the default, ie alias cd cd dir=[] will essentually 'unkeyword' the dir keyword for you. -- andy finkel {uunet|rutgers|amiga}!cbmvax!andy Commodore-Amiga, Inc. "There is no programming problem that cannot be solved by proper "application of the Delete command." Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors.