I have a SICStus script A.pl. What I need is to print out the Current Working Directory (to be able to save that script in it) and load that file with something like load command. How can I finish that off ? Last but not least, how can I enable the up-arrow to go through the command history after the prompt | ?-.