[TUHS] /bin/true (was basic tools / Universal Unix)
chet.ramey at case.edu
Fri Oct 20 22:10:03 AEST 2017
On 10/19/17 7:00 PM, Dave Horsfall wrote:
> On Thu, 19 Oct 2017, Chet Ramey wrote:
>> Yes, Posix requires that all builtins be execable. It doesn't require
>> true and false to be implemented as builtins, though.
> Good luck with "cd"...
It doesn't have to do what you think it should. Using `cd' with something
like `find' or `env' is a fine way to test directory accessibility. The
Posix standard contains several examples of such use.
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet at case.edu http://cnswww.cns.cwru.edu/~chet/
More information about the TUHS