Hi, Currently, bash does not support local function. But it might be
helpful to add such a feature, so that function can become a first
class citizen in the language. Could this be considered in the future?
#!/usr/bin/env bash
function f {
local temp=xxxx
local g
function g {
echo in g $temp
}
g
}
set -v
f
g
--
Regards,
Peng