Once upon a time, Vít Ondruch <vondr...@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 <li...@cmadams.net>
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to