Skip to content

Commit

Permalink
Update bits-info.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git authored Oct 18, 2024
1 parent aa36475 commit 021fbca
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,21 @@
SCRIPT_NAME='Bits info'
SCRIPT_VERSION='1.4'

readlink "/proc/$$/exe" | grep 'obosh' && set -x || :
#readlink "/proc/$$/exe" | grep 'obosh' && set -x || :

echo '==='
abc_f() { local abc && echo 'OK: local' || echo 'Failed: local'; }
abc_f

echo '---'
command -v 'local' && echo 'OK: local' || echo 'Failed: local'
type 'local' && echo 'OK: local' || echo 'Failed: local'

echo '---'
command -v 'setopt' && echo 'OK: setopt' || echo 'Failed: setopt'
type 'setopt' && echo 'OK: setopt' || echo 'Failed: setopt'

echo '==='
set -u 2> /dev/null || :
# shellcheck disable=SC3040 # Ignore: In POSIX sh, set option pipefail is undefined
case "$(set -o || :)" in *'pipefail'*) set -o pipefail ;; *) ;; esac
Expand All @@ -28,6 +38,8 @@ NL='
'
export POSIXLY_CORRECT NL

set +e ###

convert_max_signed_int_to_bit()
{
# More info: https://www.netmeister.org/blog/epoch.html
Expand Down

0 comments on commit 021fbca

Please sign in to comment.