r1437 - in packages/branches/nexuiz/nexuiz-2.0/debian: . scripts
Eddy Petrişor
eddy.petrisor at gmail.com
Sun Aug 27 14:02:56 UTC 2006
On 27/08/06, Bruno Kleinert <fuddl at gmx.de> wrote:
> This one time, at band camp, Eddy Petrişor wrote:
> > > > why not :
> > > > if [ ${QUIET} -eq 1 ]; then
> > >
> > > is that better than '='? sorry, i'm not a shell script guru and don't
> > > know better.
> >
> > I thought you were trying to compare $QUIET with the numerical value
> > "1"; that is the purpose of my suggested line. What you are doing now
> > it actually compare strings. I don't know what was your intention.
>
> d'oh! yes, i wanted to compare it numerically. but it works with '='
> instead of -eq, too... doens't it play any role in this case, as QUIET
> is intended to be only either 1 oder 0?
Well, in that case they are amlost similar, but to be pedantic, -eq is better :)
--
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein
More information about the Pkg-games-devel
mailing list