
18 Jul
2014
18 Jul
'14
5:54 a.m.
On 18 July 2014 15:38, Robert Moonen <n0b0dy@bigpond.net.au> wrote:
Ehm, he is demonstrating that bash command line utilities become easily confused then using files with spaces in their names.
What was asked? 1.) to delete the file windows 7 What happened? 1.) the files windows and 7 were deleted
It is perhaps worth noting that "rm windows 7" gets translated by the shell into: execve("/bin/rm", ["rm", "windows", "7"], [/* 59 vars */]) = 0 So as far as "rm" is concerned, there is no confusion. On Unix, it is the shell that is responsible for splitting the arguments, and it gets confused easily (i.e. it can't always tell exactly what is required). Last I checked, this is different on Windows. -- Brian May <brian@microcomaustralia.com.au>