nsh
nsh copied to clipboard
A command-line shell like fish, but POSIX compatible.
1. where can i find the default nshrc? its not in home. 2. how can i use starship.rs as prompt in nsh?
the shell is known as git-shell not nsh
Bash has the problem of most shells: >100k LOC with not offering [proper error handling](https://stackoverflow.com/a/18086548) or being able to do [basic safety checks](https://github.com/matu3ba/dotfiles_skeleton/blob/main/POSIXunsafe). Most of them are due to POSIX...
In other shells like bash or zsh and pretty much any text editor if you press ctrl + left or right arrow key it will go to the next word...
First of all, impressive work - great experience to use it so far! I just hit a panic when I pressed Ctrl-W (I think) when editing a line from the...
The following snippets crash nsh: 1. Invalid UTF-8 in the command substitution output: `$(printf '\xff')`. 2. Invalid UTF-8 in env vars: (run from bash) `A=$'\xff' ./target/release/nsh`. 3. Null byte in...
Hi I tried to install your project with Termux on Android, and got a huge error output: https://pastebin.com/cet7NY5G Any advice? Cheers Beauford
``` error[E0432]: unresolved imports `nix::unistd::fork`, `nix::unistd::setpgid`, `nix::unistd::ForkResult`, `nix::unistd::Pid` --> /home/danish/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nsh-0.4.2/src/eval.rs:13:26 | 13 | use nix::unistd::{close, fork, pipe, setpgid, ForkResult, Pid}; | ^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^ no `Pid` in `unistd` |...
For validation, we could use something like [`grok.sh`] or https://stackoverflow.com/a/67261832. Run code as `nsh -c ''`, e.g.: `nsh -c 'var='`. ## Features - [ ] **Empty variable assignment** ```sh #!/bin/sh...
``` Compiling nsh v0.4.2 error[E0061]: this function takes 0 arguments but 1 argument was supplied --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/nsh-0.4.2/src/prompt.rs:131:25 | 131 | let hostname_cstr = unistd::gethostname(&mut hostname_buf).expect("failed to get hostname"); | ^^^^^^^^^^^^^^^^^^^...