Re: More than 10% of all Fedora spec files are not POSIX sh compliant

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Once upon a time, Vít Ondruch <vondruch@xxxxxxxxxx> 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@xxxxxxxxxxx>
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux