* Fri, Oct 19, 2007 at 02:54:20PM -0700, H. Peter Anvin: > Oleg Verych wrote: > > > >I did not proposed to remove `-a' && `-o' support, did i? > > > >Proposition is to not have this things in dash's built-in `test`. > >Where > > > >* `dash` is a fast and small POSIX compliant shell; > >* POSIX doesn't require `test` or any other utility to be built-in; > > + proposition has fallback to external `test` > >* early userspace problem, where `/usr/bin/test` (on NFS/LVM whatever) > > isn't available, wasn't in visioning of POSIX at all; > > + as `initramfs-tools' has `busybox` anyway, there's no problem to > > install shell's `test` checking stub and /bin/test or > > `/bin/busybox test` as fallback *if needed*. > > > > This seems rather pointless. You need test for the shell to be usable > at all, and having it built in avoids the constant fork/exec overhead.
I hope "most of the `test` usage is two or three arg ops" considered valid. @/etc/init.d$ grep -R -e '\[ ' -e 'test ' * | grep -e ' -o ' -e ' -a ' | wc -l 14 @/etc/init.d$ grep -R -e '\[ ' -e 'test ' * | wc -l 567 @/etc/init.d$ Now i'm sure. ____ - To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
