Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Ralf Wildenhues
[ re-added bug-autoconf ] * Eric Blake wrote on Wed, Apr 16, 2008 at 08:04:23PM CEST: > Subject: [PATCH] Document pdksh exec behavior. > > * doc/autoconf.texi (Limitations of Builtins) : New > subsection. > Discovered by Jim Meyering. This looks good to me, thanks. Cheers, Ralf __

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Eric Blake
Ralf Wildenhues gmx.de> writes: > > case bug in the shell portability section. POSIX states that exec is > > supposed to bypass shell builtins (and while special shell builtins, like > > 'exit', give undefined behavior when passed to exec, regular shell > > builtins, like 'fg', are required to e

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Jim Meyering
Matthew Woehlke <[EMAIL PROTECTED]> wrote: >> $ /bin/sh -c '(exec mknod --version)' | head -1 >> $ /bin/sh -c 'nice mknod --version' | head -1 >> $ /bin/sh -c 'nohup mknod --version' | head -1 > > I realize you already pushed something, but for the record, wouldn't > env' work as well (and without

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Jim Meyering
Matthew Woehlke <[EMAIL PROTECTED]> wrote: > Eric Blake wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> According to Jim Meyering on 4/16/2008 6:30 AM: >> | My first reaction was "great! that looks much better". >> | Unfortunately, the technique doesn't work with that shell: >> |

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Matthew Woehlke
Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 4/16/2008 6:30 AM: | My first reaction was "great! that looks much better". | Unfortunately, the technique doesn't work with that shell: | | openbsd$ ./mknod --version|head -1 | mknod (GNU coreutils)

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Ralf Wildenhues
Hi Eric, * Eric Blake wrote on Wed, Apr 16, 2008 at 03:07:42PM CEST: > According to Jim Meyering on 4/16/2008 6:57 AM: > | $ PATH=. /bin/sh -c 'exec mknod --version'|head -1 > | /bin/sh: mknod: --: unknown option > > Ouch - this looks like a POSIX compliance bug in exec; I'm adding > bug-autoc

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Jim Meyering
Eric Blake <[EMAIL PROTECTED]> wrote: > According to Jim Meyering on 4/16/2008 6:57 AM: > | $ PATH=. /bin/sh -c 'exec mknod --version'|head -1 > | /bin/sh: mknod: --: unknown option > > Ouch - this looks like a POSIX compliance bug in exec; I'm adding > bug-autoconf to the distribution in case

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Jim Meyering
Eric Blake <[EMAIL PROTECTED]> wrote: > According to Jim Meyering on 4/16/2008 6:57 AM: > | $ PATH=. /bin/sh -c 'exec mknod --version'|head -1 > | /bin/sh: mknod: --: unknown option > > Ouch - this looks like a POSIX compliance bug in exec; I'm adding > bug-autoconf to the distribution in case

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 4/16/2008 6:57 AM: | $ PATH=. /bin/sh -c 'exec mknod --version'|head -1 | /bin/sh: mknod: --: unknown option Ouch - this looks like a POSIX compliance bug in exec; I'm adding bug-autoconf to the distribution in case w

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Jim Meyering
Thomas Schwinge <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 02:30:57PM +0200, Jim Meyering wrote: ... >> My first reaction was "great! that looks much better". >> Unfortunately, the technique doesn't work with that shell: >> >> openbsd$ ./mknod --version|head -1 >> mknod (GNU coreutils

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Andreas Schwab
Jim Meyering <[EMAIL PROTECTED]> writes: > Unfortunately, the technique doesn't work with that shell: > > openbsd$ ./mknod --version|head -1 > mknod (GNU coreutils) 6.10.188-7cb24 > openbsd$ PATH=. /bin/sh -c 'mknod --version'|head -1 What about /bin/sh -c 'exec mknod --version'? Andreas.

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 4/16/2008 6:30 AM: | My first reaction was "great! that looks much better". | Unfortunately, the technique doesn't work with that shell: | | openbsd$ ./mknod --version|head -1 | mknod (GNU coreutils) 6.10.188-7cb24 |

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Thomas Schwinge
Hello! On Wed, Apr 16, 2008 at 02:30:57PM +0200, Jim Meyering wrote: > Eric Blake <[EMAIL PROTECTED]> wrote: > > According to Jim Meyering on 4/16/2008 2:33 AM: > > | This test would fail not only because the built-in mknod > > | doesn't support -Z, but because it doesn't know about 'p' pipes. > >

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Jim Meyering
Eric Blake <[EMAIL PROTECTED]> wrote: > According to Jim Meyering on 4/16/2008 2:33 AM: > | This test would fail not only because the built-in mknod > | doesn't support -Z, but because it doesn't know about 'p' pipes. > | > | tests: avoid mkdir/selinux failure when mknod is a shell built-in >

Re: avoid mkdir/selinux failure when mknod is a shell built-in

2008-04-16 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 4/16/2008 2:33 AM: | This test would fail not only because the built-in mknod | doesn't support -Z, but because it doesn't know about 'p' pipes. | | tests: avoid mkdir/selinux failure when mknod is a shell built-in |