5 ms·
"Variable function parser inactive" -- interesting, did they apply the unofficial patch to namespace-prefix function definitions? This poster[0] seems to not h
by scintill76 12y ago
"Variable function parser inactive" -- interesting, did they apply the unofficial patch to namespace-prefix function definitions? This poster[0] seems to not have it, though. Who is right? The test at that github link seems a bit sketchy, by using a simple name like "a" instead of, say, __test_bashbug_a, and not checking the output very thoroughly. But it seems like it would fail the other way if there's a command named "a" in OS X's PATH...
https://news.ycombinator.com/item?id=8385819 https://news.ycombinator.com/item?id=8385819
- mcpherrinm 12y agoIt isn't unoffical anymore. For bash3.2, which seems to be what apple is distributing, that patch is ftp://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-054
- f- 12y agoThey applied the unofficial one. The official one uses a different suffix.
- scintill76 12y agoCool, thanks for the pointer.
- ahomescu1 12y agoAfter testing it by doing: $ foo() { echo foo; } $ foo foo $ export -f foo I got this variable: __BASH_FUNC<foo>()=() { echo foo }