Skip to main content
13 events
when toggle format what by license comment
Jan 26 at 13:29 comment added Ed Morton Regarding "Here I don't use find since it doesn't support double-asterisk wildcard **" - find doesn't need to support double-asterisk wildcard to look in sub-directories since it does that by default. By the way, you might want to add shopt -s nullglob to the top of your script so FILES doesn't literally contain foo/**/*.suffix if/when there are no .suffix files under foo.
Jan 5 at 5:02 comment added An5Drama @EdMorton Yes. Sorry for my lacking rigorousness. I used double-quote somewhere while not elsewhere. Here double-quote is needed if some filename contain "whitespace or wildcard characters" as the well-known wiki says.
Jan 4 at 14:00 comment added Ed Morton echo $anything (without quotes) is almost always a bug that should have been written echo "$anything". The 2 statements are not equivalent, see mywiki.wooledge.org/Quotes.
Jan 3 at 11:59 vote accept An5Drama
Jan 2 at 19:14 history became hot network question
Jan 2 at 11:13 history edited An5Drama CC BY-SA 4.0
add one description about why I use bash glob instead of find command
Jan 2 at 10:16 answer added ilkkachu timeline score: 6
Jan 2 at 10:11 answer added Kusalananda timeline score: 2
Jan 2 at 9:11 history edited An5Drama CC BY-SA 4.0
add the test for sameness.
Jan 2 at 8:56 comment added An5Drama @Kusalananda Sorry. I have fixed that.
Jan 2 at 8:55 history edited An5Drama CC BY-SA 4.0
fix the command used in zsh to be compatible with bash
Jan 2 at 8:54 comment added Kusalananda Can you please confirm that you are using the bash shell and not zsh?
Jan 2 at 8:43 history asked An5Drama CC BY-SA 4.0