This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: kawa.sh shell script improved




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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]