bug-coreutils
[Top][All Lists]
Advanced

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

Re: touch: enhancement request to preserve file ownership and permission


From: Eric Blake
Subject: Re: touch: enhancement request to preserve file ownership and permissions
Date: Wed, 12 Sep 2007 22:20:36 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

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

According to Peter Newman on 9/12/2007 9:18 PM:
> 
> Add option "-p" to be used only in conjunction with "-r" so that the file 
> owner, group and file permissions are "preserved" (copied) from the 
> referenced file as well as the timestamp.

How is this different from the current two-step process
'chmod --ref=reffile yourfile && touch --ref=reffile yourfile'?

- --
Don't work too hard, make some time for fun as well!

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

iD8DBQFG6LqU84KuGfSFAYARAg6gAKCNe5JbAoMOijT0lhgN4vE/O+YAzwCgv3Ul
uGCrhOZCdiS9W0uLonsHtLM=
=qAUv
-----END PGP SIGNATURE-----




reply via email to

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