| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | Magnus Hagander <magnus(at)hagander(dot)net> |
| Cc: | David Fetter <david(at)fetter(dot)org>, Ashish Karalkar <ashish(dot)karalkar(at)info-spectrum(dot)com>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: user input during runtime |
| Date: | 2007-02-17 22:32:18 |
| Message-ID: | 200702172232.l1HMWIW22449@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tony Caduto | 2007-02-17 23:01:08 | CodeGear working on a new DB access layer for Delphi, but..... |
| Previous Message | Bruce Momjian | 2007-02-17 22:29:37 | Re: Small request re error message |