[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with env
From: |
Sascha Ziemann |
Subject: |
Problem with env |
Date: |
07 Apr 2001 16:16:19 +0200 |
User-agent: |
Gnus/5.0803 (Gnus v5.8.3) Emacs/20.6 |
Hi,
the env program does not quote the output by default and there is no
way to tell the program to do so. This makes the program quite a bit
dangerous. It is possible to define a value of an environment
variable with a newline:
$ export EVIL='
> FAKE=1'
The output of the env program makes it impossible to distinguish
between real variables and faked variables:
$ env
...
EVIL=
FAKE=1
...
Does POSIX require this behavior?
bis später...
Sascha
--
Ein Hoch auf den 7. Juni 2000
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Problem with env,
Sascha Ziemann <=