This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: kawa.sh shell script improved
- From: Per Bothner <per at bothner dot com>
- To: Duncan Mak <duncanmak at gmail dot com>
- Cc: Kawa mailing list <kawa at sourceware dot org>
- Date: Wed, 19 Nov 2014 16:18:19 -0800
- Subject: Re: kawa.sh shell script improved
- Authentication-results: sourceware.org; auth=none
- References: <546D014B dot 60008 at bothner dot com> <CABgWrqpWtuXyzGSpKEaU36PdjPtHaUQdmykPjc-ZHWDeivy=7Q at mail dot gmail dot com> <546D3000 dot 8080405 at bothner dot com>
On 11/19/2014 04:04 PM, Per Bothner wrote:
kawa.sh is generated from bin/kawa.sh.in.
Make sure you get a fresh check-out.
There is still one problem: What, if anything,
to put in the top #!! line.
#!/bin/sh works fine on systems where /bin/sh is bash.
Otherwise, it breaks if you try to use -D or -J options.
#!/bin/bash may not be available on all systems.
Plus it's needlessly restrictive, since the script also works on ksh.
Leaving out the #! line may fail if there is a system where the default
"shell" is not Bourne shell or compatible. I know in the old days on BSD systems
the default shell was the users default shell. I don't know if that is the
case on any modern system.
--
--Per Bothner
per@bothner.com http://per.bothner.com/