shellver
Detect the current shell and its version on Linux by traversing /proc.
Features
- Linux-only detection via
/proc - Library API and CLI binary
- Best-effort version parsing for common shells
Installation
Library:
Binary:
CLI:
Example output:
bash 5.3.9
Usage
use Shell;
Supported Shells
The supported shell list is exposed via Shell::supported_shells(), see the SHELLS in src.
Errors
Shell::detect() returns an io::Result and may fail if the process chain
cannot be read or if no supported shell is found within the hop limit.
Platform
Linux only. This crate relies on /proc to traverse parent processes.
License
MIT