bug-bash
[Top][All Lists]
Advanced

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

nullglob make unset on array member fail ?


From: admn ombres
Subject: nullglob make unset on array member fail ?
Date: Mon, 23 Jan 2017 15:04:40 +0100

$ x=(x); echo ${#x[@]}; shopt -s nullglob; unset x[0]; echo ${#x[@]}
1
1
$ x=(x); echo ${#x[@]}; shopt -u nullglob; unset x[0]; echo ${#x[@]}
1
0



reply via email to

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