4 ms·
> That's not general POSIX, right? I seem to recall it's Bash-specific? (P.S. I think you forgot quotes?) Wrong. (And no, I did not.) POSIX, or rather SUS (I'
by dozzie 8y ago
> That's not general POSIX, right? I seem to recall it's Bash-specific? (P.S. I think you forgot quotes?)
Wrong. (And no, I did not.)
POSIX, or rather SUS (I've never had an access to POSIX), mandates ${foo%...}
syntax and its three cousins. And assignment is not subject to word
splitting for variable expansion.