From: git Date: Mon, 16 Feb 2026 15:02:19 +0000 (-0500) Subject: made "usage:" error message take $0 instead of being hardcoded X-Git-Url: https://git.datadissipation.net/?a=commitdiff_plain;h=7b10856568b58a58866c11044938bc08e66cfc47;p=baseconv.git made "usage:" error message take $0 instead of being hardcoded --- diff --git a/tobin b/tobin index 58c0eae..a10a72d 100755 --- a/tobin +++ b/tobin @@ -28,7 +28,7 @@ conv() { main() { - USAGE="usage: tobin [-mnp] ..." + USAGE="usage: ${0} [-mnp] ..." if ! [ "$1" = "x" ] && ! [ -t 0 ]; then cat | tr '\n' ' ' | xargs tobin "x" "$@" return "$?" diff --git a/todec b/todec index 5ef3a84..30affa2 100755 --- a/todec +++ b/todec @@ -28,7 +28,7 @@ conv() { main() { - USAGE="usage: todec [-mnKMG] ..." + USAGE="usage: ${0} [-mnKMG] ..." if ! [ "$1" = "x" ] && ! [ -t 0 ]; then cat | tr '\n' ' ' | xargs todec "x" "$@" return "$?" diff --git a/tohex b/tohex index 733d07a..3eab3b0 100755 --- a/tohex +++ b/tohex @@ -26,7 +26,7 @@ conv() { main() { - USAGE="usage: tohex [-lmnp] ..." + USAGE="usage: ${0} [-lmnp] ..." if ! [ "$1" = "x" ] && ! [ -t 0 ]; then cat | tr '\n' ' ' | xargs tohex "x" "$@" return "$?"