LinuxCommandLibrary

bshell

Bourne Shell interpreter

TLDR

Start an interactive Bourne shell

$ bshell
copy
Execute a shell script
$ bshell [path/to/script.sh]
copy
Execute a command
$ bshell -c "[command]"
copy
Run in debug mode showing executed commands
$ bshell -x [path/to/script.sh]
copy
Run as a restricted shell
$ bshell -r
copy

SYNOPSIS

bshell [-ruvx] [-c command] [script] [arguments...]

DESCRIPTION

bshell is a Bourne Shell interpreter from the Schily-Tools collection, providing a traditional POSIX-compatible shell environment. It executes commands read from standard input, command strings, or script files.
The Bourne Shell is the original Unix shell written by Stephen Bourne at Bell Labs. This implementation maintains compatibility with the classic shell behavior while running on modern systems.

PARAMETERS

-c command

Execute the specified command string
-r
Start as a restricted shell, limiting certain operations for security
-u
Treat unset variables as errors and exit
-v
Print shell input lines as they are read (verbose mode)
-x
Print commands and arguments as they are executed (debug mode)

CAVEATS

The bshell command is part of the Schily-Tools package and may not be installed by default on most Linux distributions. Most systems use bash or dash as /bin/sh for Bourne shell compatibility.

HISTORY

The original Bourne Shell was developed by Stephen Bourne at Bell Labs and first appeared in Version 7 Unix in 1979. It replaced the Thompson shell and became the foundation for subsequent shells including ksh, bash, and zsh. The Schily-Tools implementation by Jörg Schilling provides a modern port of the classic Bourne Shell.

SEE ALSO

sh(1), bash(1), dash(1), ksh(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community