On 18 July 2014 15:38, Robert Moonen <[email protected]> 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 <[email protected]>
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to