summaryrefslogtreecommitdiffstats
path: root/bin/sh/expand.h
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>1999-04-09 15:23:48 +0000
committertegge <tegge@FreeBSD.org>1999-04-09 15:23:48 +0000
commite35119550e9142eb4be6ce80eab506e95a9ac0f8 (patch)
treefdfffe8e5c0927cda6bae4c7667c42cbb19f2d72 /bin/sh/expand.h
parentb624ddd42093f5eb9104e8e66da8b702e2d56476 (diff)
downloadFreeBSD-src-e35119550e9142eb4be6ce80eab506e95a9ac0f8.zip
FreeBSD-src-e35119550e9142eb4be6ce80eab506e95a9ac0f8.tar.gz
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 <Havard.Eidnes@runit.sintef.no>
Diffstat (limited to 'bin/sh/expand.h')
-rw-r--r--bin/sh/expand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/expand.h b/bin/sh/expand.h
index 18c1663..eec9885 100644
--- a/bin/sh/expand.h
+++ b/bin/sh/expand.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)expand.h 8.2 (Berkeley) 5/4/95
- * $Id: expand.h,v 1.6 1998/09/06 21:13:09 tegge Exp $
+ * $Id: expand.h,v 1.7 1998/09/13 19:24:57 tegge Exp $
*/
struct strlist {
@@ -62,6 +62,6 @@ union node;
void expandhere __P((union node *, int));
void expandarg __P((union node *, struct arglist *, int));
void expari __P((int));
-int patmatch __P((char *, char *));
+int patmatch __P((char *, char *, int));
void rmescapes __P((char *));
int casematch __P((union node *, char *));
OpenPOWER on IntegriCloud