help-bash
[Top][All Lists]
Advanced

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

failing globstar extglob vars list


From: #!microsuxx
Subject: failing globstar extglob vars list
Date: Fri, 8 Nov 2024 00:30:37 +0100

well i fixed it
in the end it was using declare instead of not declare , to parse spaces in
@( list )

i heard IFS=' 'acts same as ' \\n' ?

set +f
shopt -s nullglob dotglob extglob globstar

f=( mp3 'foo 4a' ) IFS=\|
n=${f[*]@Q} s="@($n)"
IFS=$' \t\n'
declare "r=( ~/**/*.$s )"
declare -p r n s

r has then a list of mp3's
the test was about extension lists


reply via email to

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