[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Weird error of bash "/bin/sh: line 1: `BASH_FUNC_f%%': n
Re: [Help-bash] Weird error of bash "/bin/sh: line 1: `BASH_FUNC_f%%': not a valid identifier"
Sat, 04 Oct 2014 10:17:58 -0600
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1
On 10/04/2014 10:05 AM, Peng Yu wrote:
> A script like main.sh used to work on my Mac OS X. But somehow it
> stops working. Can anybody see what is wrong? Where is "BASH_FUNC_f%%"
> /tmp$ export -f f
This line injects BASH_FUNC_f%% into the environment.
> /tmp$ ./main.sh
You didn't show us the contents of main.sh.
> /bin/sh: line 1: `BASH_FUNC_f%%': not a valid identifier
Your /bin/sh is buggy. POSIX says that implementations should tolerate
(that is, silently ignore or erase) invalid environment variable names
that they do not understand, rather than loudly complain. Since Mac OS
is proprietary, I cannot help you fix your /bin/sh; but please raise a
bug report to Apple to fix their /bin/sh.
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
Description: OpenPGP digital signature