Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Dec 2011 15:08:26 +0000
From:      Chris Rees <crees@freebsd.org>
To:        Christer Edwards <christer.edwards@gmail.com>
Cc:        Doug Barton <dougb@freebsd.org>, "freebsd-ports@FreeBSD.org" <freebsd-ports@freebsd.org>
Subject:   Re: salt rc.d scripts (Was: RUN_DEPENDS for python based port)
Message-ID:  <CADLo838vGBfxFB4F-euXM1L1nCc%2B-%2B=nv-KQQ0=jtn9RvDWN_w@mail.gmail.com>
In-Reply-To: <CAH2d3%2BvU4914NWZw=zpEOGB-dPrz4_mSmOwMTyGVQOZDn2G6Ug@mail.gmail.com>
References:  <CAH2d3%2BvMF8jM6GHJQ6DR7EywmnY%2Bj=0tSHFEf_5oW1C6QhYD8A@mail.gmail.com> <4EEC6D9D.1020102@yandex.ru> <CAH2d3%2Btr8deqeGLPywXAXsRDPt_-3GwpkqPhK=zk5PtztvkK6g@mail.gmail.com> <4EEEAE03.1080908@yandex.ru> <CAH2d3%2BtE8s%2Bf6ni9GLdh0nHTQdN50BeaoAQ6%2BnYTrUBbJAiKDA@mail.gmail.com> <4EF2FBAE.8050406@yandex.ru> <CAH2d3%2BvWDbahx_kuo9_T8ezK2W9JGxyy74czeUTDopKKUzrQfg@mail.gmail.com> <4EF393BC.2020003@yandex.ru> <CAH2d3%2Bs1Tkizqoa5-spY92A82fgXxJ1m53Or4Fb5SPGhZKG4iw@mail.gmail.com> <CAH2d3%2Btd83z%2Bb0UG%2BH8%2BFmCe-A=dk1FAYd6k=1J43GrybyHsng@mail.gmail.com> <4EF3CF11.6070104@FreeBSD.org> <CAH2d3%2BtJT==ZbJxopTJiPewvS%2B6JOeAf_RSVdzD9fBBeDkEpYg@mail.gmail.com> <4EF3E10C.4070209@FreeBSD.org> <CAH2d3%2BvU4914NWZw=zpEOGB-dPrz4_mSmOwMTyGVQOZDn2G6Ug@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 23 December 2011 02:28, Christer Edwards <christer.edwards@gmail.com> wrote:
> On Thu, Dec 22, 2011 at 7:01 PM, Doug Barton <dougb@freebsd.org> wrote:
>> Try doing s/-/_/ for all the $name variables. I think that's what's
>> causing your problem.
>
> I did a little more testing (and I added the Makefile and .in file
> suggestions). I can now get it to run consistently if I change $name
> to use all underscores, and also update $command to 'salt-master'
> instead of $name. Definitely something funny about having dashes in
> the name I guess.

Just for your enlightenment, I suggest you read the sh manpage section
on 'Parameter Expansion' very carefully, and you will soon see why
you're not allowed hyphens in variable names :)

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo838vGBfxFB4F-euXM1L1nCc%2B-%2B=nv-KQQ0=jtn9RvDWN_w>