test -n STRING and test STRING differ

2004-09-04 Thread Dan Jacobson
The docs make it look like test -n STRING and test STRING do the same. However, $ /usr/bin/test ``; echo $? 1 $ /usr/bin/test -n ``; echo $? 0 $ test ``; echo $? 1 $ test -n ``; echo $? 0 ___ Bug-coreutils mailing list [EMAIL PROTECTED] http://lists.gnu

Re: cp -upv copies even when not newer

2004-09-04 Thread Alfred M. Szmidt
Works for me. [EMAIL PROTECTED]:/tmp$ echo ooo>c [EMAIL PROTECTED]:/tmp$ cp -upv c e `c' -> `e' [EMAIL PROTECTED]:/tmp$ test c -nt e;echo $? #is it newer? No. 1 [EMAIL PROTECTED]:/tmp$ cp -upv c e [EMAIL PROTECTED]:/tmp$ cp --version cp (coreutils) 5.2.1 cp (coreutils) 5.0.91 You might wish t

cp -upv copies even when not newer

2004-09-04 Thread Dan Jacobson
$ man cp -u, --update copy only when the SOURCE file is newer $ echo ooo>c $ cp -upv c e `c' -> `e' $ test c -nt e;echo $? #is it newer? No. 1 $ cp -upv c e `c' -> `e' cp (coreutils) 5.0.91 ___ Bug-coreutils mailing list [EMAIL PRO