<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Temps on Daniel Genezini</title><link>https://genezini.com/temp/</link><description>Recent content in Temps on Daniel Genezini</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>2022 Daniel Genezini All rights reserved</copyright><lastBuildDate>Mon, 04 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://genezini.com/temp/index.xml" rel="self" type="application/rss+xml"/><item><title>#!/bin/bash or #!/usr/bin/env sh</title><link>https://genezini.com/temp/shebang-bash-vs-env/</link><pubDate>Mon, 04 May 2026 00:00:00 +0000</pubDate><guid>https://genezini.com/temp/shebang-bash-vs-env/</guid><description>&lt;p>A shebang names the interpreter; the forms differ in &lt;em>where&lt;/em> they look.&lt;/p>
&lt;p>&lt;strong>&lt;code>#!/bin/bash&lt;/code>&lt;/strong> runs the binary at that exact path: Bash features work — arrays, &lt;code>[[ ]]&lt;/code>, brace expansion, &lt;code>source&lt;/code> — but it breaks where Bash is absent or elsewhere: minimal containers, some BSDs.&lt;/p>
&lt;p>&lt;strong>&lt;code>#!/usr/bin/env sh&lt;/code>&lt;/strong> asks &lt;code>env&lt;/code> to find &lt;code>sh&lt;/code> on the user&amp;rsquo;s &lt;code>PATH&lt;/code>, so it runs under whatever &lt;code>sh&lt;/code> is — &lt;code>dash&lt;/code> on Ubuntu, &lt;code>bash&lt;/code> in POSIX mode, else something else. Portable, POSIX features only. Same for &lt;code>#!/usr/bin/env bash&lt;/code>: it finds &lt;em>a&lt;/em> Bash, not a specific one.&lt;/p></description></item></channel></rss>