Add builtin status (#603)
The new status builtin accepts three arguments: - **-l**: returns true if the shell is a login shell. - **-i**: returns true if the shell is interactive. - **-f**: prints the filename of the currently running shell script or if there is none prints stdio.
Showing
- examples/basic_condition.ion 0 additions, 0 deletionsexamples/basic_condition.ion
- manual/src/ch11-00-builtins.md 15 additions, 1 deletionmanual/src/ch11-00-builtins.md
- setup.ion 1 addition, 1 deletionsetup.ion
- src/builtins/mod.rs 14 additions, 3 deletionssrc/builtins/mod.rs
- src/builtins/status.rs 107 additions, 0 deletionssrc/builtins/status.rs
Loading
Please register or sign in to comment