GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Contents
  • Current events
  • Random article
  • About Wikipedia
  • Contact us
  • Help
  • Learn to edit
  • Community portal
  • Recent changes
  • Upload file
  • Special pages
  • Search
  • Donate

This view

  • Original page
  • New address

GeezerVison is showing en.wikipedia.org — Stand-alone shell - Wikipedia

sash
Screenshot of the sash shell
DeveloperDavid Bell
Stable release
v3.8 (March 2014 (2014-03))
Operating systemUnix-like
TypeEmbedded
Websitemembers.tip.net.au/~dbell/

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

The built-in commands of sash have all libraries linked statically, so unlike most shells on Linux, the standard UNIX commands do not rely on external libraries. For example, the copy command (cp) requires libc.so and ld-linux.so when built from GNU Core Utilities on Linux. 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 following built-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 with Android[1] in a terminal-interface.

sash-plus-patches

sash-plus-patches is a collection of patches for sash. The key features are the chroot, pivot root, and losetup 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 the environment variable "VAR".

Some Linux distributions, such as Debian and Slackware (via SlackBuilds.org), have this available.

See also

  • BusyBox
  • Toybox
  • Comparison of computer shells

References

  1. ↑ Master-Console. "Standalone-Shell(sash) specifically compiled for the Android Operating System". Github.

Sources

  • sash - Linux man page Archived 2011-08-20 at the Wayback Machine

External links

  • sash homepage
Retrieved from "https://en.wikipedia.org/w/index.php?title=Stand-alone_shell&oldid=1282836532"
Categories:
  • Unix shells
  • Embedded Linux
Hidden categories:
  • Articles with short description
  • Short description matches Wikidata
  • All articles with unsourced statements
  • Articles with unsourced statements from April 2010
  • Webarchive template wayback links
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.