help-bash
[Top][All Lists]
Advanced

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

Re: How to test if a variable is declared?


From: Koichi Murase
Subject: Re: How to test if a variable is declared?
Date: Mon, 14 Mar 2022 02:25:11 +0900

2022年3月14日(月) 0:02 Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>:
>
> [[ -v var ]] || printf not\\n

This thread is continued from the discussion two years ago. See the
original post of this thread where the reason that -v cannot be used
is explained: https://lists.gnu.org/archive/html/help-bash/2020-03/msg00015.html



reply via email to

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