bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "touch -" touching standard output


From: Eric Blake
Subject: Re: "touch -" touching standard output
Date: Mon, 26 Sep 2005 06:54:18 -0600
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Paul Eggert on 9/25/2005 12:21 AM:
> 
> To help counteract this for futimes, we can have "touch -" touch the
> standard output, i.e., it can invoke futimes on the standard output
> rather than utimes on the file named "-".  This is pretty
> straightforward so I installed the following patch.

Does this countradict POSIX, meaning that when POSIXLY_CORRECT, 'touch -'
should be the same as 'touch ./-'?  I couldn't see anything in POSIX that
permits or forbids this change in semantics, although I agree that it
seems useful.  Also, it seems a bit strange that - maps to stdout, when it
usually maps to stdin.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDN+9684KuGfSFAYARAu2/AJ4tJallLselI81vWjx0jHQOfzHZsgCdHGX4
bmph540bev1zv4umlGgYXAU=
=QbTR
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]