top | item 46922179 (no title) hidroto | 24 days ago would it not just produce 'b/c'? assuming 'b/c' is an existent file pathwhat else could you justify it doing? discuss order hn newest thayne|24 days ago The behavior of bash would be to produce "a/c" and "b/c", even if both files don't exist sgbeal|24 days ago > The behavior of bash would be to produce "a/c" and "b/c", even if both files don't existIn bash patterns like {a,b} aren't glob-expansion expansions, they're string operations, and those resolve before glob expansions.You can confirm this with: ls /{nope,tmp} frizlab|24 days ago zsh too oguz-ismail2|24 days ago What sibling comment says. Bash does suppress nonexistent products when the pattern includes a glob metacharacter and `shopt -s nullglob' is in effect, but I didn't see a flag or anything to achieve that in the project README. unknown|24 days ago [deleted]
thayne|24 days ago The behavior of bash would be to produce "a/c" and "b/c", even if both files don't exist sgbeal|24 days ago > The behavior of bash would be to produce "a/c" and "b/c", even if both files don't existIn bash patterns like {a,b} aren't glob-expansion expansions, they're string operations, and those resolve before glob expansions.You can confirm this with: ls /{nope,tmp} frizlab|24 days ago zsh too
sgbeal|24 days ago > The behavior of bash would be to produce "a/c" and "b/c", even if both files don't existIn bash patterns like {a,b} aren't glob-expansion expansions, they're string operations, and those resolve before glob expansions.You can confirm this with: ls /{nope,tmp}
oguz-ismail2|24 days ago What sibling comment says. Bash does suppress nonexistent products when the pattern includes a glob metacharacter and `shopt -s nullglob' is in effect, but I didn't see a flag or anything to achieve that in the project README. unknown|24 days ago [deleted]
thayne|24 days ago
sgbeal|24 days ago
In bash patterns like {a,b} aren't glob-expansion expansions, they're string operations, and those resolve before glob expansions.
You can confirm this with: ls /{nope,tmp}
frizlab|24 days ago
oguz-ismail2|24 days ago
unknown|24 days ago
[deleted]