conch-runtime-pshaw 0.1.6

A library for evaluating/executing programs written in the shell programming language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{ExitStatus, EXIT_ERROR, EXIT_SUCCESS};

/// The `:` builtin command has no effect, and exists as a placeholder for word
/// and redirection expansions.
pub fn colon() -> ExitStatus {
    EXIT_SUCCESS
}

/// The `false` builtin command has no effect and always exits unsuccessfully.
pub fn false_cmd() -> ExitStatus {
    EXIT_ERROR
}

/// The `true` builtin command has no effect and always exits successfully.
pub fn true_cmd() -> ExitStatus {
    EXIT_SUCCESS
}