<br><br><div class="gmail_quote">On Mon, Jan 2, 2012 at 12:44 AM, Nils Kassube <span dir="ltr"><<a href="mailto:kassube@gmx.net">kassube@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">Edward avanti wrote:<br>
> Halo,<br>
> Does anyone else find if they call the multi option from ubuntu sh<br>
> script it fails?<br>
><br>
> For instance<br>
><br>
> mkdir -p<br>
> /var/log/system_archives/{acpid,auth,btmp,daemon,dpkg,kernel,messages<br>
> ,pm,ppp,scrollkeeper,wpa,wtmp}/$YEAR upon checking this made a<br>
> directory called<br>
> /var/log/system_archives//{acpid,auth,btmp,daemon,dpkg,kernel,message<br>
> s,pm,ppp,scrollkeeper,wpa,wtmp}/2012<br>
><br>
> if I run this from my shell manually, it works<br>
><br>
> this same script I use on all my servers, centos, gentoo, slackware,<br>
> on those it works as intended,. but on ubuntu  it goes stupid not<br>
> honouring the {}<br>
<br>
</div></div>Probably you start your script with "#!/bin/sh" which is a link to dash<br>
in Ubuntu and to bash on other systems. As dash doesn't know your wanted<br>
feature, you should start your script with "#!/bin/bash" instead.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Nils<br>
<br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></span></blockquote></div><br>