Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Mar 2011 20:02:39 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/bin/sh parser.c src/tools/regression/bin/sh/expansion plus-minus8.0 trim7.0
Message-ID:  <201103132003.p2DK3Nf4073789@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2011-03-13 20:02:39 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               parser.c 
  Added files:
    tools/regression/bin/sh/expansion plus-minus8.0 trim7.0 
  Log:
  SVN rev 219623 on 2011-03-13 20:02:39Z by jilles
  
  sh: Fix some parameter expansion variants ${#...}.
  
  These already worked: $# ${#} ${##} ${#-} ${#?}
  These now work as well: ${#+word} ${#-word} ${##word} ${#%word}
  
  There is an ambiguity in the standard with ${#?}: it could be the length of
  $? or it could be $# giving an error in the (impossible) case that it is not
  set. We continue to use the former interpretation as it seems more useful.
  
  Revision  Changes    Path
  1.106     +30 -19    src/bin/sh/parser.c
  1.1       +5 -0      src/tools/regression/bin/sh/expansion/plus-minus8.0 (new)
  1.1       +16 -0     src/tools/regression/bin/sh/expansion/trim7.0 (new)



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