Conversation
Notices
-
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Wednesday, 18-Sep-2024 05:36:18 JST Haelwenn /элвэн/ :triskell: @kasdeya That's just replacing .pdf to -crop.pdf -
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Wednesday, 18-Sep-2024 05:46:37 JST Haelwenn /элвэн/ :triskell: @kasdeya Seems like explainshell really needs some improvements in that area, can't even explain standard foo="foobar" ; echo ${foo//bar}.
-
Embed this notice
njsg (njsg@social.sdf.org)'s status on Friday, 20-Sep-2024 22:41:21 JST njsg @lanodan @kasdeya (Am I reading the documentation wrong or is it replacing *all* occurrences of ".pdf" in the name with "-crop.pdf"?)
-
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Friday, 20-Sep-2024 22:41:21 JST Haelwenn /элвэн/ :triskell: @njsg @kasdeya Yup due to the double-slashes, correct one would be ${fname%.pdf}-crop.pdf (standard) or ${fname/%.pdf/-crop.pdf} if you really want to stick to bashisms.
See https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_06_02 for the standard specification.
-
Embed this notice