unix(+Command)This predicate comes from the Quintus compatibility library and provides
a partial implementation thereof. It provides access to some operating
system features and unlike the name suggests, is not operating system
specific. Defined Command's are below.
- system(+Command)
- Equivalent to calling shell/1.
Use for compatibility only.
- shell(+Command)
- Equivalent to calling shell/1.
Use for compatibility only.
- shell
- Equivalent to calling shell/0.
Use for compatibility only.
- cd
- Equivalent to calling working_directory/2
to the expansion (see
expand_file_name/2)
of
~
. For compatibility only.
- cd(+Directory)
- Equivalent to calling working_directory/2.
Use for compatibility only.
- argv(-Argv)
- Unify Argv with the list of command line arguments provided
to this Prolog run. Please note that Prolog system arguments and
application arguments are separated by
--
. Integer
arguments are passed as Prolog integers, float arguments and Prolog
floating point numbers and all other arguments as Prolog atoms. New
applications should use the Prolog flag argv.
See also the Prolog flag
argv.