Re: Remove Deprecated Exclusive Backup Mode - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Remove Deprecated Exclusive Backup Mode
Date
Msg-id 20200701194713.GB14470@momjian.us
Whole thread Raw
In response to Re: Remove Deprecated Exclusive Backup Mode  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
On Wed, Jul  1, 2020 at 01:23:21PM -0400, Stephen Frost wrote:
> > Or, how about we require them to provide the backup label contents in its
> > entirety? Which I believe does contain that WAL portion?  The downside of
> > that is that it would be multiline which might screw with shellscripts.
> 
> This is getting a bit beyond the pale imv if we're talking about trying
> to cater to software that can't manage to handle a multi-line result or
> multi-line argument to a function.

Seems to work for me in bash:

    $ X='a
    > b
    > c'

    $ echo "$X"
    a
    b
    c

    $ echo $X
    a b c

You need the double quotes around the variable name.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Remove Deprecated Exclusive Backup Mode
Next
From: Magnus Hagander
Date:
Subject: Re: Remove Deprecated Exclusive Backup Mode