Mark Gardner<p><span class="h-card" translate="no"><a href="https://oldbytes.space/@kenshirriff" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>kenshirriff</span></a></span> <span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>b0rk</span></a></span> Always default to enclosing file names and other argument strings to your <a href="https://social.sdf.org/tags/shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shell</span></a> in 'single quotes' unless you want it mucked about with substituting $ENVIRONMENT_VARIABLES or `command substitution` (which uses an entirely other kind of quote!)</p><p>"Double quotes" will honor the spaces but also tell your shell to look for variable and command expansion.</p><p><a href="https://social.sdf.org/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://social.sdf.org/tags/Unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Unix</span></a> <a href="https://social.sdf.org/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> <a href="https://social.sdf.org/tags/zsh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>zsh</span></a> <a href="https://social.sdf.org/tags/Zshell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Zshell</span></a> <a href="https://social.sdf.org/tags/ksh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ksh</span></a> <a href="https://social.sdf.org/tags/csh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>csh</span></a> <a href="https://social.sdf.org/tags/tcsh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tcsh</span></a> <a href="https://social.sdf.org/tags/fish" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fish</span></a> <a href="https://social.sdf.org/tags/FishShell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FishShell</span></a></p>