|
From: | alex xmb ratchev |
Subject: | unset -v cant unset outside function ? |
Date: | Mon, 20 Feb 2023 09:52:29 +0100 |
unset -v a ; a=( 0 1 ) ; f() { declare -ga a ; unset -v a ; a+=( 3 ) ; } ; declare -p a declare -a a=([0]="0" [1]="1") unset -v a ; a=( 0 1 ) ; f() { unset -v a ; a+=( 3 ) ; } ; declare -p a declare -a a=([0]="0" [1]="1")
[Prev in Thread] | Current Thread | [Next in Thread] |