On 31 May 2012 10:38, Daniel Pittman <daniel(a)rimspace.net> wrote:
...and, of course, Windows doesn't do quote
processing or command line
parsing in any particular standard way, so each process gets the
entire single string with the rest of the command line on it.
There are some advantages however. Examples from memory. So not sure
if they are still valid or not.
move ../file.*
will move those files to the CWD (if move is not valid in DOS use copy
instead), under Unix however,
mv ../file.*
will expand (assuming two files match) into say:
mv ../file.c ../file.bak
(I did this once at Uni, my tutor thought I had lost my file;
fortunately I realized what really happened)
Or even worse:
mv ../file.bak ../file.c
which is probably not what you want. At least if there is only one
match or more then one and the last is not a directory, it will
complain.
Also I believe this is valid in DOS:
rename *.bak *.c
Will rename all *.bak files to have a *.c
--
Brian May <brian(a)microcomaustralia.com.au>