<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 20, 2014 at 7:54 PM, Matthieu Weber <span dir="ltr"><<a href="mailto:mweber@free.fr" target="_blank">mweber@free.fr</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Except that wouldn't work on busybox, since the "args=( )" syntax is not<br>
supported.<br></blockquote><div><br></div><div>Pass needs bash. Period. Bash supports args=().</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
But instead of shadowing an external command with a shell function (I<br>
thought of it too, but it is definitely dirty), why not define a<br>
"verbose_mkdir()" function (or a "create_directories()" if you prefer)<br>
that does exactly what its name says, and that can in turn be<br>
implemented in two different ways depending on the shell?</blockquote><div><br></div><div>You mean depending on the available mkdir, not depending on the shell. The situation you're running into here is that busybox's mkdir doesn't support -v. Hence the above suggestion. </div>
</div></div></div>