Re: Fix for defaults in createuser

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Fix for defaults in createuser
Date: 2001-01-21 13:56:49
Message-ID: 200101211356.IAA10040@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

> Bruce Momjian writes:
>
> > ! if [ $REPLY = "y" -o $REPLY = "Y" ]; then
> >
> > fixed to:
> >
> > ! if [ "$REPLY" = "y" -o "$REPLY" = "Y" ]; then
>
> Good.
>
> FYI, it's never necessary to quote the right side of a shell variable
> assignment.
>
> FOO=$BAR
>
> always works, as does
>
> case $foo in ...
>
> But it doesn't hurt of course.

I see:

$ X="a b"
$ Y=$X

I never realized that. Now I am confused why 'test' needs it, but
assignment doesn't.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2001-01-21 18:34:50 Re: Re: [PATCHES] Patch to support transactions with BLOBs for current CVS
Previous Message Peter Eisentraut 2001-01-21 10:56:19 Re: Fix for defaults in createuser