[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFE: allowing "" as a path specification for 'current dir' w/o prepe
From: |
Bernhard Voelker |
Subject: |
Re: RFE: allowing "" as a path specification for 'current dir' w/o prepending './' ? |
Date: |
Fri, 3 Mar 2017 08:08:49 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/02/2017 11:55 PM, Eric Blake wrote:
> I think that always outputting ./ by default is a GOOD thing, and that if you
> want to strip it, you should put in
> extra effort (whether that be post-processing, [...])
E.g. with realpath(1):
$ find -exec realpath -ms --relative-base='.' '{}' +
realpath(1) would also support:
-z, --zero end each output line with NUL, not newline
;-)
Have a nice day,
Berny
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBAgAGBQJYuRaBAAoJEEZQLveWkXGVSscIAJSTkOL6xmEEk5wTDwR2hZGk
AZGRD9lor/OSpc1mRuGA4iubGARPDkyKkS6TomN4RVM3lkb/TAg7j7Lke/HXg+Nu
Ak7Y67gSN3cP2eCE7HUI+fj9HiPzHApRI2KbJLRcVfn4c4GYqnwI3l3mShx8pmrI
3jatMQYMrv76JsVrmFHHMFCYxYohGavQ0iHbtj+i0wyjylFh9lbTiM1M3ZP+jmQt
0Tw57EuxiHQ2CiDywFPpfhBsRX5AgpfSaDj7yhwrmw/ueT7Zm07OIxx5J2iUzMVh
adZkwMINcWjwZgYdVbNkyT9u+tSO2ESU0sdsGf6WuRkNJKC5kwLdwFZmia25zZY=
=XWx1
-----END PGP SIGNATURE-----