in reply to Taint bug with backticks in variable assignments
The process number of the Perl running this script. You should consider this variable read-only, although it will be altered across fork() calls. (Mnemonic: same as shells.)When you do, ``, you're doing a fork. If you do it twice in one statement (as in perl -Tle"`dir $$`, `dir $$`"), $$ will be tainted after the first fork.
update: well, if any variable triggers this then it may very well be a bug. perl -Tle"$a=1;`dir $a`, `dir $a`" Though there is always do ;) perl -Tle"$a=1;`dir $a`, do{`dir $a`}"
update: yeah, i was reachin' with the fork theory :)(and, btw, i couldn't find a perlbug report on this)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Taint bug with backticks in variable assignments
by Abigail-II (Bishop) on Nov 19, 2003 at 15:44 UTC | |
|
Re: Re: Taint bug with backticks in variable assignments
by shotgunefx (Parson) on Nov 19, 2003 at 15:11 UTC |