by Rich Simms on Fri Dec 12, 2008 10:08 am
Hi Ollie,
bash will treat each * as an expansion character. **** will match all the files in your directory. You will of course get different results depending what directory you are in.
If you echo **** you will see the command bash is trying to execute. Hopefully you don't have a file named rm and all your other files in the directory named with a letter that follows r in the alphabet!
[code][rsimms@opus test]$ ls
cat words
[rsimms@opus test]$ cat words
Oops
[rsimms@opus test]$ echo *
cat words
[rsimms@opus test]$ echo ****
cat words
[rsimms@opus test]$ ****
Oops
[rsimms@opus test]$
[/code]
- Rich