Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2009 22:33:10 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/bin/test TEST.sh test.c
Message-ID:  <200905262233.n4QMXP9o056490@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2009-05-26 22:33:10 UTC

  FreeBSD src repository

  Modified files:
    bin/test             TEST.sh test.c 
  Log:
  SVN rev 192862 on 2009-05-26 22:33:10Z by jilles
  
  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
  Approved by:    ed (mentor)
  
  Revision  Changes    Path
  1.9       +40 -0     src/bin/test/TEST.sh
  1.54      +59 -9     src/bin/test/test.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905262233.n4QMXP9o056490>