> > I was surprised that mv '-filename' filename or mv "-filename" filename
> > didn't work.
That's because the shell interperets the quotes and removes them before
passing the option to mv. The commands:
mv "this" "that"
mv 'this' 'that'
are both equivalent to :
mv this that
mv is launched with "mv", "this", and "that" as arguments 0, 1 and 2.
mv \"this\" that
wouldn't work, either, since the file does not exist with quotation
marks, and mv wouldn't know to remove them.
Remember that the program, mv in this case, interperets arguments. The
shell does not.
> Gordon's suggestion of -- seems to be using
> functionallity of the shell
Close, it's functionality of the getopt() library. The shell
interperets command lines, but not arguments.
> BTW I ended up changing it from a win98 machine that could access the
> partition via samba. No problems at all. I wonder what the command looks
> like that ends up being sent via samba looks like? Are direct systems calls
> made or is there a shell somewhere?
System calls.
MSG
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.