Skip to content

Possibly broken system2 env-option

1 message · l o

l o
#
Studying Professor Dalgaard's code a bit, here is a little hack that
returns the desired result on Unix-alikes:

From
to
Hello World

That is, adding the semi-colon effectively transforms

pd$ VAR="foo" echo $VAR

to

pd$ VAR="foo"; echo $VAR


Maybe this doesn't apply to more complicated situations,though.

luke