Bash scripting problems

Alexander Dalloz ad+lists at uni-x.org
Sat Jan 8 18:10:11 UTC 2005


Am Sa, den 08.01.2005 schrieb Chadley Wilson um 18:49:

> I can't begin to explain how strange this is

Nothing strange ...

> I have run your script as posted on two different system both with fresh 
> installs
> 
> heres the output[root at check39 ~]# sh test.sh

Why the hell do you use "sh"?

./test.sh

With the correct shebang line it will use bash and not sh.

> all aliases set
> 0
> 
> unalias cp and mv
> 
> test.sh: line 9: unalias: cp: not found
> test.sh: line 10: unalias: mv: not found
> 0

> Chadley Wilson

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.9-1.6_FC2smp 
Serendipity 19:08:24 up 16 days, 20:52, load average: 1.70, 0.88, 0.47 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20050108/823831d0/attachment-0002.bin 


More information about the users mailing list