library(unix)
This package provides a set of UNIX-like commands. They take character lists as well as atoms.
| ?- cd. % same as cd "~". | ?- cd Dir. % Dir is atom or chars. | ?- csh. % runs an interactive /bin/csh | ?- csh Cmd. % interprets Cmd with /bin/csh | ?- ls. % runs /bin/ls with no arguments. | ?- pg F. % same as sh('/usr/bin/pg F'). | ?- sh. % runs an interactive /bin/sh | ?- sh Cmd. % interprets Cmd with /bin/sh | ?- shell. % runs an interactive $SHELL | ?- shell Cmd. % interprets Cmd with $SHELL