diff options
author | Brian Harring <ferringb@gentoo.org> | 2005-02-09 02:31:40 +0000 |
---|---|---|
committer | Brian Harring <ferringb@gentoo.org> | 2005-02-09 02:31:40 +0000 |
commit | 9937d58a37f1e44809c874cb0f6a0e592ef05bd1 (patch) | |
tree | 8305f07326e38619b93a0fb091777a1e336fba1c /src | |
parent | removed an unneeded basename subshell call, just abuse bash patter matching/s... (diff) | |
download | portage-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.c | 6 |
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) { |