From owner-cvs-src-old@FreeBSD.ORG Fri Apr 9 22:48:44 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B52A1065678 for ; Fri, 9 Apr 2010 22:48:44 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 08A5D8FC14 for ; Fri, 9 Apr 2010 22:48:44 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o39MmhYC025890 for ; Fri, 9 Apr 2010 22:48:43 GMT (envelope-from emaste@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o39MmhNf025889 for cvs-src-old@freebsd.org; Fri, 9 Apr 2010 22:48:43 GMT (envelope-from emaste@repoman.freebsd.org) Message-Id: <201004092248.o39MmhNf025889@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to emaste@repoman.freebsd.org using -f From: Ed Maste Date: Fri, 9 Apr 2010 22:48:27 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/bin/test TEST.sh test.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 22:48:44 -0000 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