Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Stand-alone shell

From Wikipedia, the free encyclopedia
Unix shell
sash
Screenshot of the sash shell
DeveloperDavid Bell
Stable release
v3.8 (March 2014; 11 years ago (2014-03))
Operating systemUnix-like
TypeEmbedded
Websitemembers.tip.net.au/~dbell/

Stand-alone shell (sash) is aUnix shell designed for use in recovering from certain types of system failures and errors.

The built-in commands of sash have alllibraries linked statically, so unlike most shells on Linux, the standardUNIX commands do not rely on external libraries. For example, the copy command (cp) requireslibc.so andld-linux.so when built fromGNU Core Utilities onLinux. If any of these libraries get corrupted, the coreutils cp command would not work; however, in sash, the built-in command, cp, would be unaffected.

In earlier times, most critical commands (including shells) in /sbin or even /bin were statically linked for this purpose, whereas in /usr/sbin and /usr/bin you would find the more feature-rich versions that were dynamically linked. This is not common anymore and as such, statically linked shells with built-in commands have become more important.

Sash has the followingbuilt-in commands:

ar,chattr,chgrp,chmod,chown,cmp,cp,dd,echo,ed,exec,grep,file,find,gunzip,gzip,kill,losetup,ln,ls,lsattr,mkdir,mknod,rmdir,sum,sync,tar,touch,umount,where

The Sash shell has also been ported to work withAndroid[1] in aterminal-interface.

sash-plus-patches

[edit]

sash-plus-patches is a collection of patches for sash. The key features are thechroot,pivot root, andlosetup commands. However, these functions are available in newer versions of sash. These functions provide interfaces to the respective Linux system calls. They are especially useful when sash is used in an initial ramdisk ("initrd") environment. In addition, simple shell variable expansion support has been added; e.g., the variable "$(VAR)" is replaced by the content of theenvironment variable "VAR".

Some Linux distributions, such asDebian andSlackware (via SlackBuilds.org), have this available.[citation needed]

See also

[edit]

References

[edit]
  1. ^Master-Console."Standalone-Shell(sash) specifically compiled for the Android Operating System".Github.

Sources

[edit]

External links

[edit]
File system
Processes
User environment
Text processing
Shell builtins
Searching
Documentation
Software development
Miscellaneous
General terms
Firmware and controls
Boot loaders
Software libraries
Programming tools
Operating systems
Programming languages
Retrieved from "https://en.wikipedia.org/w/index.php?title=Stand-alone_shell&oldid=1282836532"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp