Audit mv(1)

1) Make argument-naming consistent with other tools (cp(1), ...)
2) style fixes
3) usage() fix
4) BUGFIX: Probably from the old non-arg.h days, the directory-
   check was only done when argc > 3, but with arg.h, this ignores
   the case when 3 arguments were given.
   This is actually a pretty serious issue and I'm glad it's fixed.
5) Moreover, be more verbose when stat() fails and make it clearer
   what the hell is going on at this checkpoint.
This commit is contained in:
FRIGN
2015-03-04 23:22:43 +01:00
parent aaac1c8800
commit 109f6b5a60
3 changed files with 15 additions and 10 deletions

2
README
View File

@@ -47,7 +47,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* mkdir yes none
=*| mkfifo yes none
=* mktemp non-posix none
=* mv yes none (-i)
=*| mv yes none (-i)
=*| nice yes none
= nl no -d, -f, -h, -l, -p
=*| nohup yes none