Rod Taylor wrote:
The problem is that for 90% of the maintainers of this script, /bin/sh
is bash, so it is hard to ensure that the use of bash features does not
creep into it. Is installing bash on FreeBSD onerous? It is the
It is installed but the path is /usr/local/bin/bash like any other user
installed package would be on FreeBSD.
Hmm. I believe we could solve it by the following incantation (typing
from memory...):
---------- cut here -------------
#!/bin/sh
BASH=`which bash`
if [ "X$BASH" = "X" ]
then
echo "This script requires Bash somewhere on your PATH"
exit -1
fi
/bin/true; exec $BASH "$0" "$@"
---------- cut here -------------
Or yet another incantation:
---------- cut here -------------
#!/usr/bin/env bash
---------- cut here -------------
Both versions require Bash to work properly, but it doesn't matter where
it's installed.
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers