Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale
On 4/27/15 10:32 AM, Valentin Bajrami wrote:
> I'm sure I could use ''declare'' because of the above mentioned reason, but
> shouldn't typeset mention it's -n option?
Yes, it should. typeset and declare are equivalent. Thanks for catching
this.
--
``The lyf so short, the craft so long to lern
Hi,
While looking at indirect reference of variables, typeset seems to support
the -n option. For example
var="value"
typeset -n ref=var
echo "${!ref}"="$ref"
However when running ''help typeset'' I don't see the -n option.
[0][val@laptop:~]$ help typeset
typeset: typeset [-aAfFgilrtux] [-p]