Package: coreutils
Version: 5.97-5.4
Severity: normal
POSIX says about 'touch'[*]:
-c
Do not create a specified file if it does not exist. Do not write
any diagnostic messages concerning this condition.
[*] http://www.opengroup.org/onlinepubs/009695399/utilities/touch.html
But under some conditions, 'touch' writes a diagnostic message when
the file doesn't exist. For instance:
vin:~> mkdir dir
vin:~> chmod 000 dir
vin:~> /usr/bin/touch -c dir/file
/usr/bin/touch: setting times of `dir/file': Permission denied
zsh: exit 1 /usr/bin/touch -c dir/file
vin:~[1]>
Note that the BSD 'touch' does not have this problem, as shown by the
test below (under Mac OS X):
prunille:~> mkdir dir
prunille:~> chmod 000 dir
prunille:~> /usr/bin/touch -c dir/file
prunille:~>
Also the touch(1) man page doesn't say that no diagnostic messages
are written when the file doesn't exist. Users are not required to
look at the POSIX standard to get the full documentation.
Ditto for the manual (coreutils.info).
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-5-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages coreutils depends on:
ii libacl1 2.2.42-1 Access control list shared library
ii libc6 2.6.1-1 GNU C Library: Shared libraries
ii libselinux1 2.0.15-2+b1 SELinux shared libraries
coreutils recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]