This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: other/2141: set -C in gccbug not portable


On Thu, 1 Mar 2001, Rainer Orth wrote:

> gccbug uses set -C to avoid overwriting files with I/O redirection.
> Unfortunately, this isn't portable: none of Solaris 2.8, IRIX 6.2, or
> Tru64 UNIX V5.1 /bin/sh support it, while bash and ksh do.

Does this cause gccbug to exit at the set -C, or simply an unsightly error
message?

Is there a recommended method to create temporary files securely from
shell scripts on these systems?

I think the appropriate fix is for configure to look for a working POSIX
shell (such as bash or ksh) on systems lacking the mktemp command and set
-C.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]