Skip to content

Commit

Permalink
perf: Replace subshell with POSIX Parameter expansion (#137)
Browse files Browse the repository at this point in the history
replaces a subshell that called out to basename with Parameter Expansion specified by POSIX
  • Loading branch information
hyperupcall authored Jan 10, 2024
1 parent 81b21fc commit 9216d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion try
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# https://github.com/binpash/try

TRY_VERSION="0.2.0"
TRY_COMMAND="$(basename "$0")"
TRY_COMMAND="${0##*/}"
export TRY_COMMAND

# exit status invariants
Expand Down

0 comments on commit 9216d32

Please sign in to comment.