[TUHS] What was your "Aha, Unix!" moment?

Peter Jeremy peter at rulingia.com
Tue Oct 22 15:25:47 AEST 2019


On 2019-Oct-21 12:37:20 +1000, Warren Toomey <wkt at tuhs.org> wrote:
>As in, 'cd' has to be built into the shell. If it's external, the forked
>child gets to change directory and the parent shell doesn't. I'm just
>putting this in for those who didn't spot the nuance immediately -- took
>me a few tens of seconds.

I'm still amazed at the number of people who don't get this and write
shellscripts that save the working directory on entry and do an explicit cd
at the end (usually without considering that the shellscript could die at
other locations).

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20191022/b9f623da/attachment.sig>


More information about the TUHS mailing list