| From: | Alvaro Herrera <alvherre(at)atentus(dot)com> | 
|---|---|
| To: | "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk> | 
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)atentus(dot)com>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, <pgsql-hackers(at)postgresql(dot)org> | 
| Subject: | Re: Proposal for psql wildcarding behavior w/schemas | 
| Date: | 2002-08-06 15:53:52 | 
| Message-ID: | Pine.LNX.4.44.0208061149380.5069-100000@cm-lcon1-46-187.cm.vtr.net | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
Nigel J. Andrews dijo:
> Hmm...that's not how I've always understood shell quoting, at least for bash:
> 
> ~$ aa=3
> ~$ perl -e 'print join(",",@ARGV), "\n";' "1 $aa 2 3" 4 5 6
> 1 3 2 3,4,5,6
> ~$
What's the difference?  What your example is saying basically is that
the shell is treating the "1 $aa 2 3" as a single parameter (i.e. spaces
do not have the usual parameter-separating behaviour), _but_ variables
are interpreted.  Using '' prevents variable substitution, so 
> ~$ perl -e 'print join(",",@ARGV), "\n";' '1 $aa 2 3' 4 5 6
should give
1 $aa 2 3,4,5,6
-- 
Alvaro Herrera (<alvherre[a]atentus.com>)
FOO MANE PADME HUM
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nigel J. Andrews | 2002-08-06 15:58:46 | Re: Proposal for psql wildcarding behavior w/schemas | 
| Previous Message | Oleg Bartunov | 2002-08-06 15:30:13 | Re: CVS sources doesn't compiles |