mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-30 19:20:53 +02:00
34008: metafy the environment on arrival in the shell
This commit is contained in:
parent
f3cb9a7754
commit
ecef922df1
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2014-12-18 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2014-12-18 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
|
* 34008: Src/params.c: also metafy anything arriving from the
|
||||||
|
environment.
|
||||||
|
|
||||||
* 34006: Src/params.c: unmetafy anything put into the
|
* 34006: Src/params.c: unmetafy anything put into the
|
||||||
environment.
|
environment.
|
||||||
|
|
||||||
|
|
|
@ -641,7 +641,7 @@ split_env_string(char *env, char **name, char **value)
|
||||||
if (!env || !name || !value)
|
if (!env || !name || !value)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
tenv = strcpy(zhalloc(strlen(env) + 1), env);
|
tenv = metafy(env, strlen(env), META_HEAPDUP);
|
||||||
for (str = tenv; *str && *str != '='; str++)
|
for (str = tenv; *str && *str != '='; str++)
|
||||||
;
|
;
|
||||||
if (str != tenv && *str == '=') {
|
if (str != tenv && *str == '=') {
|
||||||
|
|
Loading…
Reference in a new issue