Re: user input during runtime - Mailing list pgsql-general

From Bruce Momjian
Subject Re: user input during runtime
Date
Msg-id 200702172232.l1HMWIW22449@momjian.us
Whole thread Raw
In response to Re: user input during runtime  (Magnus Hagander <magnus@hagander.net>)
Responses Re: user input during runtime
List pgsql-general
Magnus Hagander wrote:
> Win32 will deal with the backticks Ok, but not the read && echo part.
> You can set it to the output of a variable, for example
> \set x `echo foo`
>
> but I haven't been able to trick it into actually reading something. One
> would think something like:
> \set x `set /p Z= && echo %Z%`
> would work, but it doesn't. One reason for this is that %Z% is actually
> resolved at parsing time. it's a pain in CMD language, but that's how it
> works. :-(

CMD "language"?  LOL

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

  + If your life is a hard drive, Christ can be your backup. +

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Small request re error message
Next
From: "Joshua D. Drake"
Date:
Subject: Re: user input during runtime