<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Defective Semantics &#187; dash</title>
	<atom:link href="http://scarff.id.au/blog/tag/dash/feed/" rel="self" type="application/rss+xml" />
	<link>http://scarff.id.au</link>
	<description>Dean Scarff's perpetual struggle with technology, and other anecdotes</description>
	<lastBuildDate>Thu, 03 Nov 2011 22:39:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Debian almquist shell on Mac OS X</title>
		<link>http://scarff.id.au/blog/2010/debian-almquist-shell-on-mac-os-x/</link>
		<comments>http://scarff.id.au/blog/2010/debian-almquist-shell-on-mac-os-x/#comments</comments>
		<pubDate>Tue, 04 May 2010 13:15:35 +0000</pubDate>
		<dc:creator>Dean</dc:creator>
				<category><![CDATA[Problems]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[dash]]></category>
		<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://scarff.id.au/?p=342</guid>
		<description><![CDATA[<p>I&#8217;ve recently changed the default shell <code>/bin/sh</code> on my Leopard install to dash from bash.  Why would I do this?  Well, by bash&#8217;s own admission (see BUGS in its manpage), bash is &#8220;too big and too slow&#8221;.  dash is used for /bin/sh by default on Ubuntu nowadays, and it&#8217;s a goal for Debian (supposedly for Lenny, but I can&#8217;t see it noted in the release notes and it&#8217;s only &#8220;confirmed&#8221; in the Lenny goals).  dash is significantly smaller and faster.</p>
<p>Ubuntu and Debian ran into plenty of bashisms when they tried to change, how about Mac OS X?  So far I&#8217;ve found problems with <code>/usr/libexec/path_helper</code> (I just changed the shebang line to <code>#!/bin/bash</code>).  There was also a problem with X11&#8242;s startx, and my patch was quickly committed.</p>
<p>Interestingly enough, when I went to move the sh binary, there are actually two versions of bash in /bin.  Both report</p>
<blockquote><p>GNU bash,</p></blockquote><p>&#8230; <a href="http://scarff.id.au/blog/2010/debian-almquist-shell-on-mac-os-x/" class="read_more">more</a></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently changed the default shell <code>/bin/sh</code> on my Leopard install to <a href="http://gondor.apana.org.au/~herbert/dash/">dash</a> from bash.  Why would I do this?  Well, by bash&#8217;s own admission (see BUGS in its manpage), bash is &#8220;too big and too slow&#8221;.  dash is used for /bin/sh by default on Ubuntu nowadays, and it&#8217;s a goal for Debian (supposedly for Lenny, but I can&#8217;t see it noted in the release notes and it&#8217;s only &#8220;confirmed&#8221; in the <a href="http://release.debian.org/lenny/goals.txt">Lenny goals</a>).  dash is significantly smaller and faster.</p>
<p>Ubuntu and Debian ran into plenty of bashisms when they tried to change, how about Mac OS X?  So far I&#8217;ve found problems with <code>/usr/libexec/path_helper</code> (I just changed the shebang line to <code>#!/bin/bash</code>).  There was also a problem with X11&#8242;s startx, and my patch was quickly <a href="http://cgit.freedesktop.org/xorg/app/xinit/commit/?id=8464a8ab360b72f6817b19ce99b12f0793fbee74">committed</a>.</p>
<p>Interestingly enough, when I went to move the sh binary, there are actually two versions of bash in /bin.  Both report</p>
<blockquote><p>GNU bash, version 3.2.17(1)-release (i386-apple-darwin9.0)</p></blockquote>
<p>but differ at the binary level (they aren&#8217;t even the same size).  I wonder if Apple tried to optimize their /bin/sh given that it gets more usage.</p>
<p>I built dash-0.5.5.1 from the tarball without a problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://scarff.id.au/blog/2010/debian-almquist-shell-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

