From owner-cvs-all Fri Apr 9 14:40:43 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 3104A15C3F; Fri, 9 Apr 1999 13:49:21 -0700 (PDT) (envelope-from tegge@FreeBSD.org) Received: (from tegge@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id IAA05343; Fri, 9 Apr 1999 08:23:48 -0700 (PDT) (envelope-from tegge@FreeBSD.org) Message-Id: <199904091523.IAA05343@freefall.freebsd.org> From: Tor Egge Date: Fri, 9 Apr 1999 08:23:48 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/sh expand.c expand.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk tegge 1999/04/09 08:23:48 PDT Modified files: bin/sh expand.c expand.h Log: When a variable expansion is enclosed in double quotes, the internal representation of the expression is quoted. Take care of this when doing pattern matching in conjunction with trimming. #!/bin/sh c=d:e; echo "${c%:e}" PR: NetBSD PR#7231 Noticed by: Havard Eidnes Revision Changes Path 1.25 +54 -14 src/bin/sh/expand.c 1.8 +2 -2 src/bin/sh/expand.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message