Skip to main content
5 events
when toggle format what by license comment
Aug 10, 2024 at 0:40 comment added user1683793 @Kusalananda, yeah, I was a bit pained by the $" and $'. I tried to keep the original syntax since the OP was not asking about quotes. I know $'...\n' can give you the actual new line, etc as requested but I've never been clear on $"...". It seems like that is for international character sets or something but I never spent the time to find out.
Aug 9, 2024 at 7:38 comment added Kusalananda Also, this would replace any embedded whitespace with single spaces, would perform filename globbing with any data that looks like a globbing pattern, and would break if the data contains single quotes.
Aug 9, 2024 at 5:17 comment added Kusalananda Note that $'...' is quite different from $"..." in the bash shell. In this code, neither of these types of strings seems to be useful.
Aug 9, 2024 at 1:16 vote accept Jin Kwon
Aug 9, 2024 at 1:12 history answered user1683793 CC BY-SA 4.0