From mboxrd@z Thu Jan 1 00:00:00 1970 From: dnied@tiscali.it (Dario Niedermann) Date: Sat, 10 Sep 2016 09:45:08 +0200 Subject: [TUHS] Shell control through external commands In-Reply-To: <1468585644.26769.for-standards-violators@oclsc.org> References: <1468585644.26769.for-standards-violators@oclsc.org> Message-ID: <20160910074508.GE5970@dnied%tiscali.it> Il 15/07/2016 alle 14:27, Norman Wilson ha scritto: > Just for the record, Fedora 21 supplies /bin/cd, as part > of package bash-4.3.42-1. Interestingly, it is a shell > script: > > lu$ cat /bin/cd > #!/bin/sh > builtin cd "$@" > lu$ But doesn't this change the current dir only in the child shell? Which then exits right after the second line, parent shell's $PWD unaffected. I really don't see how this script is useful.