Kind of annoying that wordexp(3) only supports $VAR while GNU's env -S extension only supports ${VAR}.
Conversation
Notices
-
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Thursday, 28-Mar-2024 14:58:41 JST Haelwenn /элвэн/ :triskell: -
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Thursday, 28-Mar-2024 15:19:00 JST Haelwenn /элвэн/ :triskell: But well wordexp(3) is quite an ugly function anyway so would be better to roll a parser, I just already hate the idea of dealing with quotes and brackets…
-
Embed this notice
Erin 💽✨ (erincandescent@akko.erincandescent.net)'s status on Thursday, 28-Mar-2024 23:40:26 JST Erin 💽✨ @lanodan I find it funny that every wordexp implementation I'm aware of other than glibc implements the logic by
... Wait for it ...
Shelling out to /bin/sh
(Or, incomprehensibly, perl on macOS)Haelwenn /элвэн/ :triskell: likes this. -
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Thursday, 28-Mar-2024 23:42:38 JST Haelwenn /элвэн/ :triskell: @erincandescent musl also does that, in fact POSIX expects most implementations will use /bin/sh
-
Embed this notice