Re: [PATCH] test: fix issues with tests/cp/preserve-mode.sh
From:
Bernhard Voelker
Subject:
Re: [PATCH] test: fix issues with tests/cp/preserve-mode.sh
Date:
Wed, 29 Nov 2017 08:06:15 +0100
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
On 11/29/2017 06:56 AM, Pádraig Brady wrote:
+get_mode() { ls -ld "$1" | cut -b-10; }
Thanks.
BTW we often emphasize that the output of ls(1) is merely
intended for the users' eyes rather than for being processed
by a script. Consequently, shouldn't we change this to using
stat(1) instead?
Have a nice day,
Berny