When the destination of install is not a usable directory, the error wording differs from GNU (uutils at 2b85f6f, GNU 9.12 built from source):
| command |
GNU |
uutils |
install f g regular |
target 'regular': Not a directory |
target 'regular' is not a directory |
install f g missing |
target 'missing': No such file or directory |
target 'missing' is not a directory |
install f regular/ |
cannot stat 'regular/': Not a directory |
target 'regular/' is not a directory |
install f missing/ |
cannot create regular file 'missing/': Not a directory |
target 'missing/' is not a directory |
install -D -t regular/sub f |
failed to access 'regular/sub': Not a directory |
cannot create directory 'regular/sub' |
(regular is a plain file.) Both fail and leave the paths alone; only the messages differ. The single-source install -t X f case is handled separately in #14997.
When the destination of
installis not a usable directory, the error wording differs from GNU (uutils at 2b85f6f, GNU 9.12 built from source):install f g regulartarget 'regular': Not a directorytarget 'regular' is not a directoryinstall f g missingtarget 'missing': No such file or directorytarget 'missing' is not a directoryinstall f regular/cannot stat 'regular/': Not a directorytarget 'regular/' is not a directoryinstall f missing/cannot create regular file 'missing/': Not a directorytarget 'missing/' is not a directoryinstall -D -t regular/sub ffailed to access 'regular/sub': Not a directorycannot create directory 'regular/sub'(
regularis a plain file.) Both fail and leave the paths alone; only the messages differ. The single-sourceinstall -t X fcase is handled separately in #14997.