bug-bash
[Top][All Lists]
Advanced

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

Re: "${x-"$@"}" expansion


From: Grisha Levit
Subject: Re: "${x-"$@"}" expansion
Date: Tue, 26 Apr 2016 16:46:11 -0400

The same is true for + expansion:

Multiple words:

$ set -- 1 2; v=( "address@hidden" ); declare -p v
declare -a v=([0]="1" [1]="2")

Empty string:

$ set --    ; v=( "address@hidden" ); declare -p v
declare -a v=([0]="")

Nothing:

$ set --    ; v=( "address@hidden" ); declare -p v
declare -a v=()


reply via email to

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