"; done
> ARRAY=( * ) # OK
> for f in "${arr...@]}"; do echo "file: $f"; done
>
>
This is gold Marc! This answers and solves another issue I was having, as
I'm sure you can surmise. :)
Jon
--
View this message in context:
http://old.nabble.com/Selecting-out-of-an-array-tp27316649p27350192.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.
fficult time because while I know what I want to do, I just
don't know how to ask the right question. :) So if my posts are long I am
just trying to give as much information as possible so I will be understood.
Thanks Dennis!!
Jon
--
View this message in context:
http://old.nabble.com/Selecting-out-of-an-array-tp27316649p27350188.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.
DennisW a écrit :
> Also, don't use ls like this - it's eyes-only.
Here is a demonstration:
touch "filename with spaces"
ARRAY=( $(ls) ) # BUG
for f in "${arr...@]}"; do echo "file: $f"; done
ARRAY=( * ) # OK
for f in "${arr...@]}"; do echo "file: $f"; done
Jon_R schrieb:
> http://old.nabble.com/file/p27316649/newsh2.sh newsh2.sh
You have a misunderstanding about select here, I guess.
Select is supposed to display a list of given words and take user input
(index to these words). It more or less is the same as a for loop, it
just doesn't iterate th
er 10.
>
> Why does it even print "1) video9" when it should be waiting for input from
> the user?
>
> http://old.nabble.com/file/p27316649/newsh2.shnewsh2.sh
>
> Thanks for any help,
>
> Jon
> --
> View this message in
> context:http://old.nabble.com/S
help,
Jon
--
View this message in context:
http://old.nabble.com/Selecting-out-of-an-array-tp27316649p27316649.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.