Closed timabbott closed 14 years ago
Attachment: trac_7243.patch.gz
Author: Tim Abbott, Mike Hansen
I think the
#!/usr/bin/env bash
(from memory, so might not be right)
is better, as bash is not always installed in /bin
bash-2.04$ uname -a
HP-UX hpbox B.11.11 U 9000/785 2016698240 unlimited-user license
bash-2.04$ ls /bin/bash
/bin/bash not found
bash-2.04$ which bash
/opt/OpenSource/bin/bash
bash-2.04$ which env
/usr/bin/env
bash-2.04$
Yeah, using '#!/usr/bin/env bash' should be correct.
Attachment: trac_7243.patch.v2.gz
I posted a new patch reflecting that change.
That looks safe and reliable to me, so I'll set this to 'needs review' then set it to 'positive'.
Dave
Reviewer: drkirkby
Changed reviewer from drkirkby to David Kirkby
Merged: sage-4.3.rc1
In the extcode spkg, pari/dokchitser/testall uses bashisms but has a /bin/sh #! line:
!/bin/sh
echo " r ex-bsw" | sage -gp echo " r ex-chgen" | sage -gp
We should change the #! line to
!/bin/bash
CC: david.kirkby@onetel.net @mwhansen
Component: porting
Author: Tim Abbott, Mike Hansen
Reviewer: David Kirkby
Merged: sage-4.3.rc1
Issue created by migration from https://trac.sagemath.org/ticket/7243