I have a perl program that accepts an argument (intent is to change directory "cd") without spawning a child process.
$FPATH/pcd.pl allows the user to choose among a number of possible directory candidates, etc.
The trick is to get to the desired directory without being left in a spawned process. The following is the invocation I can't get to work (ksh shell):
. $FPATH/pcd.pl $*|read dir . cd $dir
No matter what real directory is returned into "$dir" the ". cd $dir" never gets to the desired directory. Please advise. Thanks.