hey all --
OK -- we are in weird city here now....
In my quest to make a shell wrapper around perl (the sybase libraries around
here moved and I cannot recompile perl statically...) I have come across the
following weird, weird bug:
This works:
wrapper.sh # shell wrapper around perl.
#!/bin/sh
present_working_directory_print.p
present_working_directory_print.p
#!/usr/local/bin/perl5.001m
chop($local_path = `pwd`);
print "$local_path\n";
This does *NOT* work:
#!/bin/sh
PATH=MY_PATH:.
export PATH
present_working_directory_print.p
In other words, the simple fact that I am modifying the PATH variable
(something
that I have to do in shell in order to call my script via cron) is causing
pwd not to work in perl! (it still works in shell)
Like I said, weird as all get out.. anybody who has a clue on this one please
mail me...
Thanks,
Ed
OK -- we are in weird city here now....
In my quest to make a shell wrapper around perl (the sybase libraries around
here moved and I cannot recompile perl statically...) I have come across the
following weird, weird bug:
This works:
wrapper.sh # shell wrapper around perl.
#!/bin/sh
present_working_directory_print.p
present_working_directory_print.p
#!/usr/local/bin/perl5.001m
chop($local_path = `pwd`);
print "$local_path\n";
This does *NOT* work:
#!/bin/sh
PATH=MY_PATH:.
export PATH
present_working_directory_print.p
In other words, the simple fact that I am modifying the PATH variable
(something
that I have to do in shell in order to call my script via cron) is causing
pwd not to work in perl! (it still works in shell)
Like I said, weird as all get out.. anybody who has a clue on this one please
mail me...
Thanks,
Ed