On 2005-02-13 Chris Lawrence <[EMAIL PROTECTED]> wrote:
> ISTM that the simplest solution is to have /usr/share/bug/exim4/script
> use #!/bin/bash.  Though, if anyone who knows anything about shell
> programming (i.e. someone not me) wants to fix handle_bug script to
> work under POSIX sh, they're more than welcome to.

Hello,
handle_bug uses the bashism "export -f" to pass on the _functions_ it
defines to the bash-subshell executing the
/usr/share/bug/package/script.  I am not aware of a possibilty to
"export functions" in POSIX sh.  However, you could do a away with
the subshell

-------------------
-$1 3>|$2
+. $1 3>|$2
-------------------
if /usr/share/bug/package/script is a shell script. You'd need to
test whether it is a shell script, e.g. by parsing the !#-line.

If you think this is to be too ugly or fragile please document that
/usr/share/bug/package/script must use "#!/bin/bash" if it wants to
make use of getkey or yesno.
               thanks, cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
                                           http://downhill.aus.cc/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to