Oh! bash is confusing (was Re: [Ilugc] bash escape - use quotes)

  • From: sridharinfinity@xxxxxxxxx (Sridhar R)
  • Date: Mon, 16 Feb 2004 05:37:04 -0800 (PST)

--- nagendra <nchumbal@xxxxxxxxx> wrote:

At 06:31 PM 2/16/2004 +0530, Ramanraj K wrote:
Sridhar R wrote:

How to delete file ??

rm '??'

rm ./??

Try these

$ touch a??b
$ rm a??b  # works

$ touch a##b
$ rm a##b  # works

$ touch ??
$ rm ??    # works!! ;>-

$ touch ^V^G^V^G
$ rm ??    # works! sigh!

(Suraj! note the above.  I said about a file '??'.  I
was unable to remove it using 
$ rm ??

But now, for `touch ^V^G^V^G` it works.  Bash is very
confusing!




=====
"How do you power off this machine?" (Linus, when upgrading 
linux.cs.helsinki.fi, and after using the machine for several months.) 
---
Sridhar R 
Email: r_sridhar AT users DOT sf DOT net
WWW:   http://sridhar.has.it

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

Other related posts: