Debian_Almquist_shell
[Wikipedia|▼Menu]

Debian Almquist shell
最新版0.5.11.5[1] / 2021年9月3日 (2年前) (2021-09-03)
リポジトリ

git.kernel.org/pub/scm/utils/dash/dash.git

種別POSIX互換UNIXシェル
ライセンスBSDライセンスGNU General Public License
公式サイト ⇒http://gondor.apana.org.au/~herbert/dash/
テンプレートを表示
.mw-parser-output .side-box{margin:4px 0;box-sizing:border-box;border:1px solid #aaa;font-size:88%;line-height:1.25em;background-color:#f9f9f9;display:flow-root}.mw-parser-output .side-box-abovebelow,.mw-parser-output .side-box-text{padding:0.25em 0.9em}.mw-parser-output .side-box-image{padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .side-box-imageright{padding:2px 0.9em 2px 0;text-align:center}@media(min-width:500px){.mw-parser-output .side-box-flex{display:flex;align-items:center}.mw-parser-output .side-box-text{flex:1}}@media(min-width:720px){.mw-parser-output .side-box{width:238px}.mw-parser-output .side-box-right{clear:right;float:right;margin-left:1em}.mw-parser-output .side-box-left{margin-right:1em}}ポータル FLOSS

Debian Almquist shell (dash)は、DebianAlmquist Shell(ash)の意で、軽量かつPOSIX互換を目指すUnixシェルである。基本的な特徴はashと共通であり、そちらの記事を参照のこと。この記事では主としてDebian版に固有な点や、Debianにおける用途について述べる。

1997年初頭にHerbert XuによってNetBSD版ashをベースにLinux版として書かれた。その後2002年に「dash」に改名された。

bashよりもシェルスクリプトの実行が高速であり、依存するライブラリが少ない。またアップグレードの問題やディスク破損に対する信頼性は高いと考えられている[2]。dashは以下の用途で使用されることを想定している:

フロッピーディスクへのインストール用シェル

スーパユーザー専用のシェル

/bin/sh の代替

シェルスクリプトがPOSIX互換の文法を正しく使用しているかのチェックのためのテスト環境

Debianは 5.0 (コードネーム: lenny)から、デフォルトの/bin/shをdashに置き換えた[3][4]

Ubuntu2006年10月にリリースされた6.10からデフォルトの/bin/shはdashである[5]。Ubuntuでは、多くのスクリプトがbashの使用を明示しないままbash固有の機能を使用していることが、dashへの移行作業の際に発覚した[6][7]。エラーを回避するため、bash前提のスクリプトには、dashで適切に動作するような改変、もしくは、明示的にbashを使用するように宣言する(すなわち、スクリプトのシバン行に「#!/usr/bin/env bash」というかたちでbashの使用を指示する)改変を加えた。
脚注^ “dash/dash.git - DASH Shell”. git.kernel.org. 2022年11月24日閲覧。
^http://packages.debian.org/dash
^Release goals for Debian Lenny
^Release Update: architecture status, release goal status, BSPs
^ Dash as /bin/sh in Ubuntu 6.10
^ Ubuntu bug #61463: script that are using bash could be broken with the new symlink
^ Ubuntu bug #141481: dash as #!/bin/sh introduces countless incompatibilities

外部リンク

Dash home

Debian package overview

Debian bugs tagged goal-dash

Debian、Ubuntuでは/bin/shがデフォルトでDashとなっている。

Dash mailing list archive

Shells in Debian
.mw-parser-output .asbox{position:relative;overflow:hidden}.mw-parser-output .asbox table{background:transparent}.mw-parser-output .asbox p{margin:0}.mw-parser-output .asbox p+p{margin-top:0.25em}.mw-parser-output .asbox{font-size:90%}.mw-parser-output .asbox-note{font-size:90%}.mw-parser-output .asbox .navbar{position:absolute;top:-0.90em;right:1em;display:none}

この項目は、コンピュータに関連した書きかけの項目です。この項目を加筆・訂正などしてくださる協力者を求めていますPJ:コンピュータ/P:コンピュータ)。
.mw-parser-output .hlist ul,.mw-parser-output .hlist ol{padding-left:0}.mw-parser-output .hlist li,.mw-parser-output .hlist dd,.mw-parser-output .hlist dt{margin-right:0;display:inline-block;white-space:nowrap}.mw-parser-output .hlist dt:after,.mw-parser-output .hlist dd:after,.mw-parser-output .hlist li:after{white-space:normal}.mw-parser-output .hlist li:after,.mw-parser-output .hlist dd:after{content:" ・\a0 ";font-weight:bold}.mw-parser-output .hlist dt:after{content:": "}.mw-parser-output .hlist-pipe dd:after,.mw-parser-output .hlist-pipe li:after{content:" |\a0 ";font-weight:normal}.mw-parser-output .hlist-hyphen dd:after,.mw-parser-output .hlist-hyphen li:after{content:" -\a0 ";font-weight:normal}.mw-parser-output .hlist-comma dd:after,.mw-parser-output .hlist-comma li:after{content:"、";font-weight:normal}.mw-parser-output .hlist-slash dd:after,.mw-parser-output .hlist-slash li:after{content:" /\a0 ";font-weight:normal}.mw-parser-output .hlist dd:last-child:after,.mw-parser-output .hlist dt:last-child:after,.mw-parser-output .hlist li:last-child:after{content:none}.mw-parser-output .hlist dd dd:first-child:before,.mw-parser-output .hlist dd dt:first-child:before,.mw-parser-output .hlist dd li:first-child:before,.mw-parser-output .hlist dt dd:first-child:before,.mw-parser-output .hlist dt dt:first-child:before,.mw-parser-output .hlist dt li:first-child:before,.mw-parser-output .hlist li dd:first-child:before,.mw-parser-output .hlist li dt:first-child:before,.mw-parser-output .hlist li li:first-child:before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child:after,.mw-parser-output .hlist dd dt:last-child:after,.mw-parser-output .hlist dd li:last-child:after,.mw-parser-output .hlist dt dd:last-child:after,.mw-parser-output .hlist dt dt:last-child:after,.mw-parser-output .hlist dt li:last-child:after,.mw-parser-output .hlist li dd:last-child:after,.mw-parser-output .hlist li dt:last-child:after,.mw-parser-output .hlist li li:last-child:after{content:")\a0 ";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li:before{content:" "counter(listitem)" ";white-space:nowrap}.mw-parser-output .hlist dd ol>li:first-child:before,.mw-parser-output .hlist dt ol>li:first-child:before,.mw-parser-output .hlist li ol>li:first-child:before{content:" ("counter(listitem)" "}.mw-parser-output .navbar{display:inline;font-size:75%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}.mw-parser-output .infobox .navbar{font-size:88%}.mw-parser-output .navbox .navbar{display:block;font-size:88%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}


次ページ
記事の検索
おまかせリスト
▼オプションを表示
ブックマーク登録
mixiチェック!
Twitterに投稿
オプション/リンク一覧
話題のニュース
列車運行情報
暇つぶしWikipedia

Size:15 KB
出典: フリー百科事典『ウィキペディア(Wikipedia)
担当:undef