I just ran across a rather strange behavior from env.  I'm sure that
I'm missing something here, but I can't see what it is.

create a script, env-test.sh;

--- CUT ---
#!/usr/bin/env FOO=buzz bash
echo $FOO
--- CUT ---

now run this:

--- SHELL ---
chmod +x env-test.sh
export FOO=fizz
./env-test.sh
--- SHELL ---

and it just hangs (on debian using coreutils 6.9 and on ubuntu using 6.10).

why is it just hanging?

as a comparison, this works as expected (it prints out "buzz") when I
run this on mac OS X 10.4 (which I would guess uses a bsd version of
env).

-jason

Reply via email to