make cd look for ~ and $HOME expansion.

This commit is contained in:
ubu32 2011-07-11 07:40:43 -07:00
parent f968a745e8
commit e379928239

View File

@ -218,7 +218,9 @@ current_op(X,Y,Z) :-
cd :- cd :-
cd('~'). cd('~').
cd(F) :- absolute_file_name(F, Dir, [file_type(directory)]), working_directory(_, Dir). cd(F) :-
absolute_file_name(F, Dir, [file_type(directory),file_errors(fail),access(execute),expand(true)]),
working_directory(_, Dir).
getcwd(Dir) :- working_directory(Dir, Dir). getcwd(Dir) :- working_directory(Dir, Dir).