4 ms·
It doesn’t. In fact, I would be very careful using subshellsm in general, because it can lead to bugs like this one: http://danwalsh.livejournal.com/74642.html
by deno 10y ago
It doesn’t. In fact, I would be very careful using subshellsm in general, because it can lead to bugs like this one: http://danwalsh.livejournal.com/74642.html http://danwalsh.livejournal.com/74642.html .
- throwanem 10y agoThat link 404s due to some url-encoded garbage at the end. This should work: http://danwalsh.livejournal.com/74642.html http://danwalsh.livejournal.com/74642.html
- gkya 10y agoWell that's strictly a bug caused by mistaken use, as strings are not expanded lazily and heredocs are just another string syntax. How can one use the unix shell without string interpolation? Also, a similar programme would give the wrong result in, say, Ruby or Perl too.