aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gentoo.org>2005-02-09 02:31:40 +0000
committerBrian Harring <ferringb@gentoo.org>2005-02-09 02:31:40 +0000
commit9937d58a37f1e44809c874cb0f6a0e592ef05bd1 (patch)
tree8305f07326e38619b93a0fb091777a1e336fba1c /src
parentremoved an unneeded basename subshell call, just abuse bash patter matching/s... (diff)
downloadportage-cvs-9937d58a37f1e44809c874cb0f6a0e592ef05bd1.tar.gz
portage-cvs-9937d58a37f1e44809c874cb0f6a0e592ef05bd1.tar.bz2
portage-cvs-9937d58a37f1e44809c874cb0f6a0e592ef05bd1.zip
change to NO_PARSING mode. allows it to handle escaped chars.
Diffstat (limited to 'src')
-rw-r--r--src/filter-env/posix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filter-env/posix.c b/src/filter-env/posix.c
index 2929345..8f0128e 100644
--- a/src/filter-env/posix.c
+++ b/src/filter-env/posix.c
@@ -470,13 +470,13 @@ walk_command(const char *p, const char *end, char endchar, const char interpret_
(interpret_level == SPACE_PARSING && isspace(*p))) {
if(!escaped)
return p;
- } else if(NO_PARSING==interpret_level) {
- p++;
- continue;
} else if('\\' == *p && !escaped) {
escaped = 1; p++; continue;
} else if(escaped) {
escaped = 0;
+ } else if(NO_PARSING==interpret_level) {
+ p++;
+ continue;
} else if('<' == *p) {
here_count++;
if(2 == here_count && interpret_level == COMMAND_PARSING) {