bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mv missing destination operand message


From: Eric Blake
Subject: Re: mv missing destination operand message
Date: Thu, 25 Sep 2008 06:26:16 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jim Meyering on 9/25/2008 1:24 AM:
>> mv: missing destination file operand after `/u/karl/tmp/paper.ltx'
>>
> However, "file" is often used not to distinguish between symlink,
> directory, fifo, block device, etc, but rather to denote a generic file
> system "object", and that's the intent here.  That same diagnostic is
> also used in cp, ln, and install, so I'd like to keep it as is.

On the other hand, is there any reason why 'ln path/to/file' creates
'./file', while 'mv path/to/file' and 'cp path/to/file' complain?  For all
three apps, POSIX does not specify the one-argument case, so we are free
to choose the behavior that makes the most sense.  I'm wondering if adding
some consistency here would help matters (either make ln reject the
one-argument case, or make cp and mv treat the one-argument case as an
implicit '-t .').

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjbg2gACgkQ84KuGfSFAYCjowCfQJAuBuFPE27tEkwQqyATSFiK
qSkAnjgeevYBD6KGFuwEtsajVjt9zVJa
=UQ9W
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]