logoalt Hacker News

layer8yesterday at 1:21 PM2 repliesview on HN

But Bash arrays don’t use comma, what’s the problem?


Replies

XCSmeyesterday at 1:41 PM

Oh, that might be true, I do remember encountering some escaping issues when creating a more complex POSIX (or bash) script that involved lists and iterating through stuff.

I see Bash only uses commas in Brace expansions:

file{1,2,3}.txt # file1.txt file2.txt file3.txt

I guess it would only be a problem if you want to expand

    file,.txt   
    file,,.txt   
    file,,,.txt
show 1 reply
pmarreckyesterday at 1:34 PM

Have you met Bash? It’s a shrine to space-delimited everything lol

show 1 reply