This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: getopt() argument permuting considered risky
- From: Roland McGrath <roland at redhat dot com>
- To: "Michael T Kerrisk" <mtk-lists at gmx dot net>
- Cc: Paul Eggert <eggert at CS dot UCLA dot EDU>, libc-alpha at sources dot redhat dot com,geoff at gclare dot org dot uk
- Date: Wed, 4 Aug 2004 12:38:04 -0700
- Subject: Re: getopt() argument permuting considered risky
> Maybe. My point is that glibc's getopt() behaviour introduces a
> behaviour not present on other Unix systems.
Those are called "improvements". We added them because we like them.
> I don't have any broken scripts. The whole point of this note was
> to raise what looks like a security risk when porting scripts and
> programs.
Put POSIXLY_CORRECT in your environment if you want to run portable scripts.
Then the system conforms to POSIX. That's what the standard is for.