[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with RM comand
From: |
Alfred M. Szmidt |
Subject: |
Re: problem with RM comand |
Date: |
Wed, 16 Jul 2003 15:16:45 +0200 |
# 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:
address@hidden:~/t$ ls
1 2 3
address@hidden:~/t$ echo $Fete*
1 2 3
address@hidden:~/t$ Fete=foobar
address@hidden:~/t$ echo $Fete*
foobar*
address@hidden:~/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.