削除された内容 追加された内容
Veracosta (会話 | 投稿記録)
最新リリース(v0.5.13)を反映。
 
(6人の利用者による、間の9版が非表示)
4行目:
{{Infobox Software
| name = Debian Almquist shell
| logo =
| developer =
| status =
| latest release version = 0.5.9.113<ref name="ver">
{{citeCite web
| url = httphttps://git.kernel.org/cgitpub/scm/utils/dash/dash.git/commit/?id=afe0e0152e4dc12d84be3c02d6d62b0456d68580
| title = Release 0dash/dash.5.9.1git - DASH Shell
| date = 2016-09-23
| publisher = git.kernel.org
| accessdate = 20162025-10-0102
}}</ref>
| latest release date = {{release date|20162025|099|2621}}
| latest preview version =
| latest preview date =
| operating system =
| size =
| programming language =
| genre = [[POSIX]]互換[[UNIXシェル]]
| license = [[BSDライセンス]]、[[GNU General Public License]]
| website = http://gondor.apana.org.au/~herbert/dash/
}}
{{Portal|FLOSSFOSS}}
'''D'''ebianDebian '''A'''lmquistAlmquist shell'''sh'''ell ('''dash''')は、[[Debian]]版[[Almquist Shell]](ash)の意で、軽量かつ[[POSIX]]互換を目指す[[Unixシェル]]である。基本的な特徴はashと共通であり、そちらの記事を参照のこと。この記事では主としてDebian版に固有な点や、Debianにおける用途について述べる。
 
1997年初頭にHerbert Xuによって[[NetBSD]]版ashをベースに[[Linux]]版として書かれた。その後2002年に'''dash'''とリネーム」に改名された。
 
bashよりもシェルスクリプトの実行が高速であり、依存する[[ライブラリ]]が少ない。またアップグレードの問題やディスク破損に対する信頼性は高いと考えられている<ref>http://packages.debian.org/dash</ref>。dashは以下の用途で使用されることを想定している:
* [[フロッピーディスク]]へのインストール用シェル
* [[スーパーユーザー|root]]スーパユーザー]]専用のシェル
* <code>/bin/sh</code> の代替
* シェルスクリプトがPOSIX互換の文法を正しく使用しているかのチェックのためのテスト環境
 
Debianは 5.0 (コードネーム: lenny)から、デフォルトの<code>/bin/sh</code>をdashに置き換えた<ref>
[http://release.debian.org/lenny/goals.txt Release goals for Debian Lenny]
</ref><ref>
[httphttps://lists.debian.org/debian-devel-announce/2008/04/msg00002.html Release Update: architecture status, release goal status, BSPs]
</ref>。
 
[[Ubuntu]]も[[2006年]][[10月]]にリリースされた6.10からデフォルトの<code>/bin/sh</code>はdashである<ref>
[https://wiki.ubuntu.com/DashAsBinSh Dash as /bin/sh in Ubuntu 6.10]
</ref>。Ubuntuでは、多くのスクリプトが[[bash]]の使用を明示しないままbash固有の機能を使用していることが、dashへの移行作業の際に発覚した<ref>
</ref>。
Ubuntuでは、多くのスクリプトが[[bash]]の使用を明示しないままbash固有の機能を使用していることが、dashへの移行作業の際に発覚した<ref>
[https://bugs.launchpad.net/ubuntu/+source/dash/+bug/61463 Ubuntu bug #61463: script that are using bash could be broken with the new symlink]
</ref><ref>
[https://bugs.launchpad.net/ubuntu/+source/dash/+bug/141481 Ubuntu bug #141481: dash as #!/bin/sh introduces countless incompatibilities]
</ref>。エラーを回避するため、bash前提のスクリプトには、dashで適切に動作するような改変、もしくは、明示的にbashを使用するように宣言する(すなわち、スクリプトの[[シバン (Unix)|shebangシバン行]]<code>#!/usr/bin/env bash</code>というかたちでbashの使用を指示する)改変を加えた。
 
== 脚注 ==
60 ⟶ 58行目:
* [http://wiki.debian.org/DashAsBinSh Debian]、[https://launchpad.net/distros/ubuntu/+spec/dash-as-bin-sh Ubuntu]では/bin/shがデフォルトでDashとなっている。
* [http://www.spinics.net/lists/dash/ Dash mailing list archive]
* [httphttps://wiki.debian.org/Shell Shells in Debian]
 
{{Computer-stub}}
{{FLOSSFOSS-stub}}
{{Debian}}
{{Unixシェル}}
70 ⟶ 68行目:
[[Category:Linuxのソフトウェア]]
[[Category:オープンソースソフトウェア]]
[[Category:UnixPOSIX準拠シェル]]