From owner-freebsd-bugs@FreeBSD.ORG Sun Mar 14 13:30:06 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B164106566B for ; Sun, 14 Mar 2010 13:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 30EE68FC1F for ; Sun, 14 Mar 2010 13:30:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2EDU5cl077141 for ; Sun, 14 Mar 2010 13:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2EDU5KB077138; Sun, 14 Mar 2010 13:30:05 GMT (envelope-from gnats) Date: Sun, 14 Mar 2010 13:30:05 GMT Message-Id: <201003141330.o2EDU5KB077138@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jilles Tjoelker Cc: Subject: Re: bin/117748: sh(1): Backslash quote fails in pattern for substring processing. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jilles Tjoelker List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 13:30:06 -0000 The following reply was made to PR bin/117748; it has been noted by GNATS. From: Jilles Tjoelker To: bug-followup@FreeBSD.org, rick.seay@yahoo.ca Cc: Subject: Re: bin/117748: sh(1): Backslash quote fails in pattern for substring processing. Date: Sun, 14 Mar 2010 14:20:11 +0100 [pattern matching characters in ${v#pat}, ${v%pat} cannot be quoted] This is easy to fix if bin/57554 is fixed first. Currently double quotes continue into ${v#pat} like they do into ${v+word}, different from what the man page says. Once that is fixed, a well-directed EXP_CASE will do it. -- Jilles Tjoelker