discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] CVS using FreeBSD


From: Daniel O'Connor
Subject: Re: [Discuss-gnuradio] CVS using FreeBSD
Date: Mon, 4 Apr 2005 10:02:32 +0930
User-agent: KMail/1.8

On Mon, 4 Apr 2005 00:11, LRK wrote:
> On Sat, Apr 02, 2005 at 10:54:14PM -0800, Eric Blossom wrote:
> > On Sat, Apr 02, 2005 at 07:11:52PM -0500, Ilia Mirkin wrote:
> > > Is there a reason to use bash instead of sh, which is pretty standard
> > > across all UNIX-like systems made in the past 15 years or so...
> >
> > Nope.  Should work fine with /bin/sh.
>
> Dont know if this is FreeBSDism or generic but sh complains about the
> "==" and bash doesn't.

== is a bashism.

= is for string compares.

Anyone want a copy of the test(1) man page? ;)

>
> --- buildit.orig      Sun Apr  3 09:20:13 2005
> +++ buildit   Sun Apr  3 09:37:47 2005
> @@ -1,7 +1,7 @@
>  #!/bin/sh
>  # -*- shell-script -*-
>
> -if [ $# -gt 0 -a "$1" == -n ]
> +if [ $# -gt 0 -a "$1" = -n ]
>  then
>    SUDO=
>    shift

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Attachment: pgpYSATIZcpip.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]