From mboxrd@z Thu Jan 1 00:00:00 1970 From: chet.ramey@case.edu (Chet Ramey) Date: Fri, 15 Jul 2016 09:55:16 -0400 Subject: [TUHS] Shell control through external commands In-Reply-To: References: <4fcf31ef-50af-10b5-0c34-ad647ed10a4e@aueb.gr> <20160714224939.GA35271@server.rulingia.com> <1468549531.1418457.666827937.6487308D@webmail.messagingengine.com> Message-ID: <5ba2b3df-0975-7215-b39d-fa8539d88f29@case.edu> On 7/14/16 11:59 PM, Dave Horsfall wrote: > On Thu, 14 Jul 2016, Random832 wrote: > >> My Mac even has /usr/bin/cd. > > After which, of course, the shell returns to where it was... Or does > it do a getcwd() after each command or something? Consider something like `find . -type d -exec cd {} \;' to test for directory search permission. That's the only use I've ever seen advocated. -- ``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/