4 ms·
Neat! I'll try that using the g() function. I would replace your $* with "$@" (in double quotes), though, so it doesn't try to re-split your arguments by the
by jayferd 14y ago
Neat! I'll try that using the g() function. I would replace your $* with "$@" (in double quotes), though, so it doesn't try to re-split your arguments by the IFS. (Yes, $@ is a gigantic hack, but a necessary one.) See http://stackoverflow.com/questions/3008695/what-the-difference-between-and-in-bash#3008734 http://stackoverflow.com/questions/3008695/what-the-differen...
- LukeShu 14y agoIt only looks like a hack until you understand Bash arrays.