Is my Perl script exciting environment variables from somewhere else?

In a Solaris window on a "mysterious production system," I run a Perl script that references an environment variable. Nothing wrong.

The contents of this variable from the shell, both before and after execution, is what I expect.

However, when the script is reported, it looks like it is running in some other sub-shell that compresses my var with different values ​​for the duration of the script.

Unfortunately, I really can't paste the code. I am trying to get an atomic case, but here I am here.

+2
source share
4 answers

Ok, here's what happened:

perl .

script , rc. rc , .

csh script, .

De-wonkifying rc ( wonkitude) .

UPDATE: , , "test.sh", "set". , - . , ksh, .

0

, script , , % ENV?

+2

Perl, , ? pid ($$), , ?

, , , , .

+1

1) Perl?

2) , . ps?

0

Source: https://habr.com/ru/post/1748610/


All Articles