From owner-cvs-src-old@FreeBSD.ORG Fri Oct 29 19:35:54 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 9B4731065672 for ; Fri, 29 Oct 2010 19:35:54 +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 879408FC17 for ; Fri, 29 Oct 2010 19:35:54 +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 o9TJZskL001952 for ; Fri, 29 Oct 2010 19:35:54 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9TJZsEm001951 for cvs-src-old@freebsd.org; Fri, 29 Oct 2010 19:35:54 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201010291935.o9TJZsEm001951@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Fri, 29 Oct 2010 19:34:57 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh expand.c src/tools/regression/bin/sh/expansion trim6.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: Fri, 29 Oct 2010 19:35:54 -0000 jilles 2010-10-29 19:34:57 UTC FreeBSD src repository Modified files: bin/sh expand.c Added files: tools/regression/bin/sh/expansion trim6.0 Log: SVN rev 214524 on 2010-10-29 19:34:57Z by jilles sh: Fix some issues with CTL* bytes and ${var#pat}. subevalvar() incorrectly assumed that CTLESC bytes were present iff the expansion was quoted. However, they are present iff various processing such as word splitting is to be done later on. Example: v=@$e@$e@$e@ y="${v##*"$e"}" echo "$y" failed if $e contained the magic CTLESC byte. Exp-run done by: pav (with some other sh(1) changes) Revision Changes Path 1.73 +13 -14 src/bin/sh/expand.c 1.1 +22 -0 src/tools/regression/bin/sh/expansion/trim6.0 (new)