arvindsv: I think we're communicating past each other on the PWD story
arvindsv
:) Probably and we're probably overthinking it as well.
gchristensen
arvindsv: without the bash `exec`, the task <exec command="sleep 100 | less"></exec> will instead of finding the executable named "sleep 100 | less" and executing it, it will parse and run it.
and yes this is valid:
$ ./sleep\ 100\ \|\ less
hi
(the escaping is only necessary due to the shell. in exec, it'd be unescaped.)
arvindsv
No. What will happen is that it will get translated to quote the command.
It has to.
Otherwise, it'll do what you said.
So, it has to be: bash -c "'sleep 100 | less'"
Which will do the right thing.
Won't parse it.
gchristensen
so you may be right, but I'm skeptical about putting that much faith into it, when what we have now is a specific behavior users are expecting :/
I wonder what shellwords will say
arvindsv
Yes, that's why it will be toggled and checked. We will have to verify all of these.
That's why I keep mentioning gotchas.
gchristensen
oh! oh! oh! this would be a good convo for gitter!
arvindsv
If you want to paste this part there, we can continue ther.