[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

local -p var prints nothing

From: William Park
Subject: local -p var prints nothing
Date: Fri, 8 Jan 2021 03:50:30 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

I don't know if it's a bug.  Manpage says "local" builtin takes all the
options that "declare" takes.  But, "local -p var" doesn't print
anything, where as "declare -p var" does.

    local a=123
    local -p a

    local a=123
    declare -p a

f1      # prints nothing
f2      # prints $a

William Park <opengeometry@yahoo.ca>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]