flip CFG_RELISH_POSIX behavior
Signed-off-by: Ava Hahn <ava@sunnypup.io>
This commit is contained in:
parent
b9414ae4d2
commit
981df23ea2
3 changed files with 5 additions and 13 deletions
|
|
@ -62,7 +62,7 @@ Errors during configuration are non-terminal. In such a case any defaults which
|
|||
- Variables and functions defined during configuration will carry over to the user/script interpreter, allowing the user to load any number of custom functions and variables.
|
||||
|
||||
** Configuration Values
|
||||
- CFG_RELISH_POSIX (default false): when true, enables POSIX style job control.
|
||||
- CFG_RELISH_POSIX (default true): when true, enables POSIX style job control and shell features.
|
||||
- CFG_RELISH_ENV (default true): when true, interpreter's variable table and environment variable table are kept in sync.
|
||||
- CFG_RELISH_L_PROMPT (default 'λ'): a function that is called with no arguments to output the left hand of the prompt
|
||||
- CFG_RELISH_R_PROMPT (default ''): a function that is called with no arguments to output the right hand of the prompt
|
||||
|
|
@ -86,13 +86,13 @@ Compiling Relish is as simple as kicking off a build with Cargo.
|
|||
cargo build
|
||||
#+END_EXAMPLE
|
||||
|
||||
This will produce a binary at file:target/debug/relish which includes all of the features relish has to offer. This provides a REPL with a full interactive shell that also can manage variables in the Unix environment. It is possible to compile a smaller REPL that does not interact with environment variables and does not offer any shell features. Simply pass the ~--no-default-features~ flag to cargo:
|
||||
This will produce a binary at [[file:target/debug/relish][target/debug/relish]] which includes all of the features relish has to offer. This provides a REPL with a full interactive shell that also can manage variables in the Unix environment. It is possible to compile a smaller REPL that does not interact with environment variables and does not offer any shell features. Simply pass the ~--no-default-features~ flag to cargo:
|
||||
|
||||
#+BEGIN_EXAMPLE sh
|
||||
cargo build --no-default-features
|
||||
#+END_EXAMPLE
|
||||
|
||||
In order to run Relish it is recommended to run the resulting binary at file:target/debug/relish.
|
||||
In order to run Relish it is recommended to run the resulting binary at [[file:target/debug/relish][target/debug/relish]].
|
||||
|
||||
** Testing
|
||||
Relish has upwards of 120 unit tests. Full functionality of the core AST with lex, parse, and eval routines as well as the symbol table and relevant code can be tested with Cargo. Unit tests are also included for the standard library of data manipulations and special cases around quote/eval and lambda use:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue