This could be bad if you use relative directories within your code and execute things within them. I expect this is more of a shell programming issue, but it can bite you with perl as well.[jbecker@deadlands /]$ echo $CDPATH /home/jbecker [jbecker@deadlands /]$ pwd / [jbecker@deadlands /]$ file /home/jbecker/pilot /home/jbecker/pilot/: directory [jbecker@deadlands /]$ cd pilot /home/jbecker/pilot [jbecker@deadlands pilot]$ pwd /home/jbecker/pilot
It's the same, essentially, as ENV. Icky.When bash is started non-interactively, to run a shell script, +for example, it looks for the variable BASH_ENV in the environment, expands its value + if it appears there, and uses the expanded value as the name of a file to read and e +xecute. Bash behaves as if the following command were executed: if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi but the value of the PATH variable is not used to search for th +e file name.
In reply to Re: perlsec question
by hawson
in thread perlsec question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |