logoalt Hacker News

hidrototoday at 8:06 AM2 repliesview on HN

would it not just produce 'b/c'? assuming 'b/c' is an existent file path

what else could you justify it doing?


Replies

thaynetoday at 8:09 AM

The behavior of bash would be to produce "a/c" and "b/c", even if both files don't exist

show 2 replies
oguz-ismail2today at 8:16 AM

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.

show 1 reply