Re: confused with BASH shell in Redhat

From: Davorin Vlahovic (A-Burn_at_fly.srk.fer.hr)
Date: 08/22/03


Date: Fri, 22 Aug 2003 21:11:24 +0000 (UTC)

In article <bi50pu$1pm6$2@mail.cn99.com>, Ka wrote:
> I tried download a file with ncftpget,
> and then the dir name is "-=New Game=-"
>
> ls -al
>
> drwxr-xr-x 3 root root 4096 Aug 22 19:19 -=New Game=-
>
> so, now I can not use command cd and du, :-((
> I am confused with Bash, why ?
> the shell expands my input, if I use key "tab", as following:
>
> [root@mail ]# cd -\=New\ Game\=-/
> bash: cd: illegal option: -=
> cd: usage: cd [-PL] [dir]
>
> and if I add "\" to transfer the "-" symbol like:
>
> [root@mail ]# cd \-\=New\ Game\=-/
> bash: cd: illegal option: -=
> cd: usage: cd [-PL] [dir]

cd "-=New Game=-"

or

cd '-=New Game=-"

I think both should work. But, the second one will definitely work.

-- 
Dammit, how many times do I have to tell you?  FIRST you rape, THEN you
pillage!!


Relevant Pages

  • Re: confused with BASH shell in Redhat
    ... > I tried download a file with ncftpget, ... > I am confused with Bash, ... the second one will definitely work. ...
    (comp.os.linux.networking)
  • Re: confused with BASH shell in Redhat
    ... > I tried download a file with ncftpget, ... > I am confused with Bash, ... > but I CAN use proftpd to enter this folder in remote ftp client, ...
    (comp.os.linux.networking)
  • Re: confused with BASH shell in Redhat
    ... > I tried download a file with ncftpget, ... > I am confused with Bash, ... > but I CAN use proftpd to enter this folder in remote ftp client, ...
    (alt.os.linux)