unix/1

unix(+ S)*

Access to Unix-like functionality:

  • argv//11 Return a list of arguments to the program. These are the arguments that follow a --, as in the usual Unix convention.

  • cd//00 Change to home directory.

  • cd//11 Change to given directory. Acceptable directory names are strings or atoms.

  • environ//22 If the first argument is an atom, unify the second argument with the value of the corresponding environment variable.

  • getcwd//11 Unify the first argument with an atom representing the current directory.

  • putenv//22 Set environment variable E to the value S. If the environment variable E does not exist, create a new one. Both the environment variable and the value must be atoms.

  • shell//11 Execute command under current shell. Acceptable commands are strings or atoms.

  • system//11 Execute command with /bin/sh. Acceptable commands are strings or atoms.

  • shell//00 Execute a new shell.