[TUHS] Shell control through external commands

Chet Ramey chet.ramey at case.edu
Fri Jul 15 23:55:16 AEST 2016


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/



More information about the TUHS mailing list