Re: pg_ctl - tighten command parameter checking

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pg_ctl - tighten command parameter checking
Дата
Msg-id 200202232151.g1NLpkM12660@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: pg_ctl - tighten command parameter checking  (Oliver Elphick <olly@lfix.co.uk>)
Список pgsql-hackers
Oliver Elphick wrote:
> On Sat, 2002-02-23 at 21:31, Bruce Momjian wrote:
> > 
> > Oliver, I am going to reject this.  We give them the syntax for the
> > params.  I don't see a need to check for leading dash to see if they
> > forgot a param.  I would like to see a more general solution that uses
> > getopt or something more robust, but moving all that checking to each
> > param just seems like a waste.
> 
> I would certainly prefer to use getopt, but is that portable?  Peter
> wants me to use case..esac instead of cut; I would have thought getopt
> was a lot less portable.

Added to TODO, at least:

* Add checks for missing parameters to shell script, to prevent  over-shifting

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_ctl - tighten command parameter checking
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: sharp or fuzzy checkpoint?