Re: problem with RM comand

"Alfred M. Szmidt" <[email protected]> Wed, 16 Jul 2003 15:16:45 +0200
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
   # echo $Fete*
   # *

   i don't undestand the signification of that
   could you help me ,
   is this normal ????

I am not familiar with ksh, but bash would read the above as a
variable followed by an `*'.  And since with almost all proboblity
$Fete is not defined to anything, it will expand it to nothing.  Thus
you will end up with only "*".  I suppose that ksh uses the same way
of naming variables, i.e. $VARNAME. 

Here is an short example to help clarify the above:

ams@null:~/t$ ls
1  2  3
ams@null:~/t$ echo $Fete*
1 2 3
ams@null:~/t$ Fete=foobar
ams@null:~/t$ echo $Fete*
foobar*
ams@null:~/t$ 

So if you want to delete a file named "$foo$" you would need to escape
that like this "\$foo\$".  Then you would get the desired effect that
you are seeking.

Hope this helps, cheers.