On 17/09/2020 00:58, Ashlen wrote:
On 20/09/15 05:49PM, Ottavio Caruso wrote:
Maybe it's just because OpenBSD sh is just ksh in disguise or there
might be other reasons that I obviously don't know.
Yep, you're right. They share the same inode.
ls -li /bin/{,k}sh
77862 -r-xr-xr-x 3 root bin 613656 Sep 15 12:10 /bin/ksh
77862 -r-xr-xr-x 3 root bin 613656 Sep 15 12:10 /bin/sh
sh(1) also attests to this.
Thanks but I gave that for granted. My question was about not exporting
PS1 to subshells. In theory, it shouldn't be exported but it does get
exported if one uses ENV=.kshrc vs sourcing .kshrc.
--
Ottavio Caruso