From owner-cvs-src-old@FreeBSD.ORG Sun Mar 13 20:03:23 2011 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 8C92A106566B for ; Sun, 13 Mar 2011 20:03:23 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 797A88FC14 for ; Sun, 13 Mar 2011 20:03:23 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p2DK3NKk073790 for ; Sun, 13 Mar 2011 20:03:23 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p2DK3Nf4073789 for cvs-src-old@freebsd.org; Sun, 13 Mar 2011 20:03:23 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201103132003.p2DK3Nf4073789@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Sun, 13 Mar 2011 20:02:39 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh parser.c src/tools/regression/bin/sh/expansion plus-minus8.0 trim7.0 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: Sun, 13 Mar 2011 20:03:23 -0000 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)