pg app: launch script functionality: use sh, rather than bash, as latter may ultimately be removed from macOS
The app PortGroup currently generates a launch script like this:
#!/bin/bash
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
exec /opt/local/bin/gedit
but now that Catalina doesn't use bash
we may have to change that to
#!/bin/sh
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
exec /opt/local/bin/gedit
or perhaps there is a better method.
Change History (7)
Summary: |
app PortGroup →
app PortGroup specifies using bash, but Catalina no longer uses bash
|
Keywords: |
portgroup added
|
Cc: |
mascguy removed
|
Owner: |
set to mascguy
|
Status: |
new →
assigned
|
Summary: |
app PortGroup specifies using bash, but Catalina no longer uses bash →
pg app: launch script functionality: use sh, rather than bash, as latter may ultimately be removed from macOS
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
/bin/bash still exists on Catalina so there is no urgent need to change anything. Perhaps it will disappear in a future version of macOS.
Presumably the script is simple enough and POSIX-compliant enough that we should be specifying /bin/sh instead. But if the portgroup's script generation is changed, all ports that use that script generation should have their revisions increased.