Once upon a time, Vít Ondruch <vondruch(a)redhat.com> said:
Is there a way to do something similar to:
A case of:
pushd someplace
[do some things]
popd
can be replaced with:
cd someplace
[do some things]
cd -
If there's some more complicated stuff that has more directory changes
in between the pushd/popd, you can do:
returnto=$(pwd)
cd someplace
[do some things]
cd $returnto
I went through a lot of this many years ago when I used RPM for managing
third-party software on DEC Unix (where /bin/sh was actual Bourne
shell), but... I don't see the value for Fedora in such churn. I don't
see a compelling reason to switch /bin/sh to something other than bash,
and it would just be confusing to run shell scriptlets with something
other than /bin/sh.
--
Chris Adams <linux(a)cmadams.net>