From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,PLING_QUERY,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id c151cc71 for ; Tue, 22 Oct 2019 05:26:19 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 4D4A69BB1E; Tue, 22 Oct 2019 15:26:18 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 0230294772; Tue, 22 Oct 2019 15:26:04 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 4CA8B94772; Tue, 22 Oct 2019 15:26:02 +1000 (AEST) Received: from vtr.rulingia.com (vtr.rulingia.com [45.77.232.82]) by minnie.tuhs.org (Postfix) with ESMTPS id 952C493D8C for ; Tue, 22 Oct 2019 15:26:01 +1000 (AEST) Received: from server.rulingia.com (ppp239-208.static.internode.on.net [59.167.239.208]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id x9M5PrGx013298 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 22 Oct 2019 16:25:58 +1100 (AEDT) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id x9M5PlYo092735 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 22 Oct 2019 16:25:48 +1100 (AEDT) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id x9M5PlpO092734; Tue, 22 Oct 2019 16:25:47 +1100 (AEDT) (envelope-from peter) Date: Tue, 22 Oct 2019 16:25:47 +1100 From: Peter Jeremy To: Warren Toomey Message-ID: <20191022052547.GA7075@server.rulingia.com> References: <1571599556.22415.for-standards-violators@oclsc.org> <20191020201219.GA5035@mail.ewe2.ninja> <20191021023720.GA12808@minnie.tuhs.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <20191021023720.GA12808@minnie.tuhs.org> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.12.1 (2019-06-15) Subject: Re: [TUHS] What was your "Aha, Unix!" moment? X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: TUHS Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-Oct-21 12:37:20 +1000, Warren Toomey 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). --=20 Peter Jeremy --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAl2uktZfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzRmURAAhPuTR6nvuODNhEAbQZ8nzdaaZTRkGBOWhe+K2BMQjROGNfTWr2RUcOwU 7oGDMr3PyzBXXk4A0vv0M+2lZmAPdngtO262dBkxTEch2jMXQ8VQiuqTicLrbsBT I5kQfYoAvto0ZTdDkGtWEneFD7SA0cvcazj+bA3wwNbfYiX5BZaZxpSaXemAdjW1 zv0KMtFLoAZ3rNlSZR4TUJimAyyBzk3yF3OVWZXByKQuDZMHimrtCA91/qzpJlmT 6LnFuWjIffdUHpBogufcKo3w3Vc6zbmsk34UD0+ZITypgapmMaCERKQ43QnHmuwR KDG44dtvRFmwQdkgqidB6JNDeBez5Bak9oa3lyfaET8tQ/3ygwmbQbsLFIHzNFSd hzajQ04kDjBGB35kzexKIKW6IyEjzesJhrFUhD7Pw3GwCGH5htDIZU9p4b+SAuog SsFIeSTSPBU80q9MmCrWIXF/KtN5Hlh2ojjUB5CsKWlQm5izu9DhxwjE7b6XYNy0 3xiMdYQAyTgm8/7IbVhF4e0BkvtYwj5z7JvBdwvQxgRTUPh4RxVYmqlP4XeC0Ryd z6inSSyH0Lnc4Y1DORoDDlVLu49vNTyY4iySwSc/mQ0ngcOf9OwgE7vrV4yf/Rof wYpI2vh1sx1Fx5suMzYkNGhtsXispZT7Omytoo44SI2ZYOxu+lc= =Y67J -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--