ubuntu script failure

Edward avanti edward.avanti at gmail.com
Mon Jan 2 09:18:54 UTC 2012


On Mon, Jan 2, 2012 at 12:44 AM, Nils Kassube <kassube at gmx.net> wrote:

> Edward avanti wrote:
> > Halo,
> > Does anyone else find if they call the multi option from ubuntu sh
> > script it fails?
> >
> > For instance
> >
> > mkdir -p
> > /var/log/system_archives/{acpid,auth,btmp,daemon,dpkg,kernel,messages
> > ,pm,ppp,scrollkeeper,wpa,wtmp}/$YEAR upon checking this made a
> > directory called
> > /var/log/system_archives//{acpid,auth,btmp,daemon,dpkg,kernel,message
> > s,pm,ppp,scrollkeeper,wpa,wtmp}/2012
> >
> > if I run this from my shell manually, it works
> >
> > this same script I use on all my servers, centos, gentoo, slackware,
> > on those it works as intended,. but on ubuntu  it goes stupid not
> > honouring the {}
>
> Probably you start your script with "#!/bin/sh" which is a link to dash
> in Ubuntu and to bash on other systems. As dash doesn't know your wanted
> feature, you should start your script with "#!/bin/bash" instead.
>
>
> Nils
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120102/176b24a6/attachment.html>


More information about the ubuntu-users mailing list