From mboxrd@z Thu Jan 1 00:00:00 1970 From: chet.ramey@case.edu (Chet Ramey) Date: Fri, 20 Oct 2017 08:10:03 -0400 Subject: [TUHS] /bin/true (was basic tools / Universal Unix) In-Reply-To: References: <009a01d348e9$e3dce200$ab96a600$@ronnatalie.com> <20171019212353.bOjzh%steffen@sdaoden.eu> <741bfdf1-c816-085e-b9ac-c301c8c2d974@case.edu> Message-ID: <9b4e27d3-afe4-902b-1650-bc85518f3f60@case.edu> 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. http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap01.html#tag_23_01_07 -- ``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/