On Wednesday 03 September 2008 10:03, Vladimir Dronnikov wrote:
> Hello, List!
> 
> Just tried to run
> # mv foo ---bar
> and it failed saying "unrecognized option ---bar".
> 
> Wonder, is this the correct behavior or a buglet in getopt32()?

# /usr/bin/mv --version
mv (GNU coreutils) 6.9
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Parker, David MacKenzie, and Jim Meyering.

# /usr/bin/mv abc ---xyz
/usr/bin/mv: unrecognized option `---xyz'
Try `/usr/bin/mv --help' for more information.


Use --:

# /usr/bin/mv -- abc ---xyz
/usr/bin/mv: cannot stat `abc': No such file or directory

--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to