<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Evan Summers on Medium]]></title>
        <description><![CDATA[Stories by Evan Summers on Medium]]></description>
        <link>https://medium.com/@evanxsummers?source=rss-db90efbf0b42------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*l0VyrAFe1hX83SRkPBKbWA.jpeg</url>
            <title>Stories by Evan Summers on Medium</title>
            <link>https://medium.com/@evanxsummers?source=rss-db90efbf0b42------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:13:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@evanxsummers/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Robust Bash via ‘set -e’]]></title>
            <link>https://medium.com/@evanxsummers/robust-bash-via-set-e-416a227bc148?source=rss-db90efbf0b42------2</link>
            <guid isPermaLink="false">https://medium.com/p/416a227bc148</guid>
            <category><![CDATA[bash]]></category>
            <dc:creator><![CDATA[Evan Summers]]></dc:creator>
            <pubDate>Wed, 18 May 2016 13:01:37 GMT</pubDate>
            <atom:updated>2016-05-18T13:01:37.934Z</atom:updated>
            <content:encoded><![CDATA[<p>So I’m a firm believer that bash scripts should “set -e” from the outset:<br>- we must handle nonzero returns, otherwise the script will abort<br>- an exit trap should alert us (via stderr) that the script has aborted on error<br>- the nonzero exit code can be “$LINENO” for debugging purposes</p><p>This enforces the good practice of handling errors, and vastly improves the robustness of bash scripts.</p><p>In development/testing:<br>- aborts force us to handle typical errors</p><p>In production:<br>- we abort before any damage is done</p><p>When we know that all commands succeeded, or otherwise their nonzero returns are explicitly handled, the script becomes easy to read and reason about.</p><p>So for your next bash script, try “set -e” and persevere. It’s worth it, I promise you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=416a227bc148" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>