You are trying to use a POSIX feature where a hard deviation between POSIX and the classical Bourne Shell exists.
Since the classical Bourne Shell behavior here gives more funtionality, bosh by default stays with the classical Bourne Shell export behavior as the default.
There are two ways to get the beavior you like to see:
call bosh -o posix
call /opt/schily/xpg4/bin/sh instead of /opt/schily/bin/bosh
The next release will install a symlink from /opt/schily/xpg4/bin/bosh to /opt/schily/xpg4/bin/sh to allow you to put /opt/schily/xpg4/bin/ in your PATH before /opt/schily/bin/
If you are OK with the basic POSIX features and do not need bosh enhancements, you also could call pbosh.
BTW: This is mentioned in the man page. The Bourne Shell by default allows to have a different internal value for all variables except for PWD.
👍
1
Last edit: Jörg Schilling 2020-07-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are trying to use a POSIX feature where a hard deviation between POSIX and the classical Bourne Shell exists.
Since the classical Bourne Shell behavior here gives more funtionality, bosh by default stays with the classical Bourne Shell export behavior as the default.
There are two ways to get the beavior you like to see:
call bosh -o posix
call /opt/schily/xpg4/bin/sh instead of /opt/schily/bin/bosh
The next release will install a symlink from /opt/schily/xpg4/bin/bosh to /opt/schily/xpg4/bin/sh to allow you to put /opt/schily/xpg4/bin/ in your PATH before /opt/schily/bin/
If you are OK with the basic POSIX features and do not need bosh enhancements, you also could call pbosh.
BTW: This is mentioned in the man page. The Bourne Shell by default allows to have a different internal value for all variables except for PWD.
Last edit: Jörg Schilling 2020-07-05
OK. Thank you for letting me know.