On Wed, Apr 14, 2010 at 07:28:02PM +1000, Roman Leshchinskiy wrote: > On 12/04/2010, at 16:30, Matthias Kilian wrote: > > > On Mon, Apr 12, 2010 at 11:47:26AM +1000, Ben Lippmeier wrote: > >> The trouble is that the boot scripts use GNU specific features. > >> I was the one that changed it to bash because I was tired of the > >> build breaking on Solaris. I think the original problem was that > >> the Solaris version of 'test' doesn't support some of the flags > >> being used, but I'm sure there are others. > > > > Thats probably this one: > > > > [ "libraries/stamp/$p" -ot $tarball ] > > FWIW, Solaris sh supports test ... -ot ... but not [ ... -ot ... ].
On sparky.ce.chalmers.se neither test nor [] supports -ot in sh. In bash both work, and /bin/test (which runs the command in ksh) also works. sparky doesn't have a stat command, so we can't use that to do it ourselves either. bash: ig...@sparky ~ $ if [ /dev/null -ot /dev/null ]; then echo yes; fi ig...@sparky ~ $ if test /dev/null -ot /dev/null; then echo yes; fi ig...@sparky ~ $ type test test is a shell builtin ig...@sparky ~ $ sh: $ if [ /dev/null -ot /dev/null ]; then echo yes; fi test: unknown operator -ot $ if test /dev/null -ot /dev/null; then echo yes; fi test: unknown operator -ot $ type test test is a shell builtin $ if /bin/test /dev/null -ot /dev/null; then echo yes; fi $ Thanks Ian _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
