[NTLUG:Discuss] Is this the way it's supposed to work?
Eric Waguespack
ewaguespack at gmail.com
Wed Apr 29 09:37:16 CDT 2009
>> (BTW, I'm running SuSE 10.3.) Given a directory with the following
>> subdirectories (others removed for brevity):
>>
>> Desktop
>> Documents
>>
>> Doing
>> cd De*
>> puts me in the Desktop subdirectory. At this point doing
>> cd ../Do*
>> puts me in the Documents directory. Next, doing
>> cd D*
>> puts me in the Desktop subdirectory.
>
The glob (*) expands into ('Desktop', 'Documents') before `cd` sees
it, `cd` only accepts one directory as an argument, namely the first,
in this case "Desktop".
More information about the Discuss
mailing list