Change < to -f in examples with input files

Started by David Fetterover 21 years ago6 messagespatches
Jump to latest
#1David Fetter
david@fetter.org

Folks,

Please find enclosed a patch, per Dennis Bj��rklund, that uses -f for
input files rather than <. This makes error messages, &c. more
expressive.

Cheers,
D
--
David Fetter david@fetter.org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778

Remember to vote!

Attachments:

foo.difftext/plain; charset=us-asciiDownload+4-4
#2Peter Eisentraut
peter_e@gmx.net
In reply to: David Fetter (#1)
Re: Change < to -f in examples with input files

David Fetter wrote:

Please find enclosed a patch, per Dennis Björklund, that uses -f for
input files rather than <. This makes error messages, &c. more
expressive.

To be portable, options must be before non-option arguments, so you need
to rearrange the command-line arguments in the examples if you want to
make that change.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

#3Bruce Momjian
bruce@momjian.us
In reply to: David Fetter (#1)
Re: Change < to -f in examples with input files

David Fetter wrote:

Please find enclosed a patch, per Dennis Bj<C3><B6>rklund, that uses -f for
input files rather than <. This makes error messages, &c. more
expressive.

Uh, how is it more expressive? The only difference I see is the line
numbers. Is that it?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#4David Fetter
david@fetter.org
In reply to: Bruce Momjian (#3)
Re: Change < to -f in examples with input files

On Mon, Feb 21, 2005 at 02:18:31PM -0500, Bruce Momjian wrote:

David Fetter wrote:

Please find enclosed a patch, per Dennis Bj<C3><B6>rklund, that
uses -f for input files rather than <. This makes error messages,
&c. more expressive.

Uh, how is it more expressive? The only difference I see is the
line numbers. Is that it?

That could be a very big deal in case of error on a large file, so
yes.

Cheers,
D
--
David Fetter david@fetter.org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778

Remember to vote!

#5Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: David Fetter (#4)
Re: Change < to -f in examples with input files

Uh, how is it more expressive? The only difference I see is the
line numbers. Is that it?

That could be a very big deal in case of error on a large file, so
yes.

In IRC, I always recommend that ppl use -f, since it's so much more
useful :)

Chris

#6Bruce Momjian
bruce@momjian.us
In reply to: David Fetter (#1)
Re: Change < to -f in examples with input files

David Fetter wrote:

Please find enclosed a patch, per Dennis Bj<C3><B6>rklund, that uses -f
for input files rather than <. This makes error messages, &c. more
expressive.

David Fetter

Applied. Thanks.

(I reordered the arguments as Peter suggested.)

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Attachments:

/bjm/1text/plainDownload+4-4