From 12ab9206e3d3068417704540b050eba25b1decd6 Mon Sep 17 00:00:00 2001 From: rwxrob Date: Sun, 15 Aug 2021 16:56:56 -0400 Subject: [PATCH] Move to `/bin/bash` and url update --- README.md | 7 ++++--- command => cmd | 9 +++++---- 2 files changed, 9 insertions(+), 7 deletions(-) rename command => cmd (97%) diff --git a/README.md b/README.md index 359d05f..15ebd50 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,8 @@ more powerful, safer, flexible, and performant than POSIX shell or Zsh. * Use present tense ("outputs" over "will output") * Prefer "output" and "display" over ~~print~~ * Follow the [naming conventions](#naming-conventions) -* Use the official bash path: `#!/usr/bin/bash` +* Use the official bash path: `#!/bin/bash` +* Use of `#!/usr/bin/bash` is outdated * Using `#!/usr/bin/env bash` introduces unnecessary risk * Explicitly export `PATH` in script when possible * Always check script with [`shellcheck`] before releasing @@ -62,7 +63,7 @@ more powerful, safer, flexible, and performant than POSIX shell or Zsh. Copyright 2021 Rob Muhlestein Released under Apache-2.0 License -Please mention +Please mention ## Commands @@ -112,5 +113,5 @@ Displays a summary of usage. ---- -*Autogenerated Tue Aug 10 09:32:13 PM EDT 2021* +*Autogenerated Sun Aug 15 04:56:38 PM EDT 2021* diff --git a/command b/cmd similarity index 97% rename from command rename to cmd index c32e9e9..79483e0 100755 --- a/command +++ b/cmd @@ -1,7 +1,7 @@ -#!/usr/bin/bash +#!/bin/bash # shellcheck disable=SC2016 set -e -# export PATH="/usr/bin:/usr/local/bin" # safer, if you can +# export PATH="/bin:/usr/bin:/usr/local/bin" # safer, if you can (( BASH_VERSINFO[0] < 4 )) && echo "Bash 4+ required." && exit 1 @@ -66,7 +66,8 @@ more powerful, safer, flexible, and performant than POSIX shell or Zsh. * Use present tense ("outputs" over "will output") * Prefer "output" and "display" over ~~print~~ * Follow the [naming conventions](#naming-conventions) -* Use the official bash path: `#!/usr/bin/bash` +* Use the official bash path: `#!/bin/bash` +* Use of `#!/usr/bin/bash` is outdated * Using `#!/usr/bin/env bash` introduces unnecessary risk * Explicitly export `PATH` in script when possible * Always check script with [`shellcheck`] before releasing @@ -78,7 +79,7 @@ more powerful, safer, flexible, and performant than POSIX shell or Zsh. Copyright 2021 Rob Muhlestein Released under Apache-2.0 License -Please mention +Please mention '