Date: Fri, 9 Apr 2010 22:48:27 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/test TEST.sh test.c Message-ID: <201004092248.o39MmhNf025889@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
emaste 2010-04-09 22:48:27 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) bin/test TEST.sh test.c Log: SVN rev 206432 on 2010-04-09 22:48:27Z by emaste MFC r192862: > Description of fields to fill in above: 76 columns --| Fix various cases with 3 or 4 parameters in test(1) to be POSIX compliant. More precisely, this gives precedence to an interpretation not using the '(', ')', '-a' and '-o' in their special meaning, if possible. For example, it is now safe to write [ "$a" = "$b" ] and assume it compares the two strings. The man page already says that test(1) works this way, so does not need to be changed. Interpretation of input with more parameters tries a bit harder to find a valid parse in some cases. Add various additional test cases to TEST.sh. PR: standards/133369 Discussed with: jilles Revision Changes Path 1.8.10.1 +40 -0 src/bin/test/TEST.sh 1.53.10.1 +59 -9 src/bin/test/test.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004092248.o39MmhNf025889>