Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!hp4nl!star.cs.vu.nl!jms From: jms@cs.vu.nl (Jan-Mark) Newsgroups: comp.os.minix Subject: Re: Are there any sh (1) patches? Summary: link test to ``['' Message-ID: <9814@star.cs.vu.nl> Date: 29 Apr 91 11:19:56 GMT References: <1991Apr27.190119.9776@doe.utoronto.ca> Sender: news@cs.vu.nl Reply-To: jms@cs.vu.nl (Jan-Mark Wams) Organization: VU Dept. of Computer Science, Amsterdam, The Netherlands Lines: 37 In article <1991Apr27.190119.9776@doe.utoronto.ca>, david@doe.utoronto.ca (David Megginson) writes: > > Has anyone released patches so that the Minix shell can use the > > if [ ] > > syntax instead of the > > if test > > syntax? I'm no Bourne Shell wizard, but most of the shell scripts I > find from Unix expect the brackets. Thank you for any info, and even > flames might be appreciated. > From test.c: * Add Jeroen van der Pluijm 09/25/89 jeroen@minixug.nluug.nl * Enabled linking to /usr/bin/[ so you cn use structures * like: * if [ -f ./test.c ] * and so on. Also added checking of argv[0] to see if it * is '[' and the last argument if it is ']'. * So try to link /bin/test to /bin/[ or (/usr/bin/test to /usr/bin/[). It should work. If it doesn't try to get a newer test program (ie. after 09/25/89.) or even better try to get a newer MINIX version. I don't think POSIX (ie. MINIX 2.0) will like this, but that's an other problem. Jan-Mark -- (:> jms (_) ========""======