diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-02-21 10:44:58 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-02-21 10:44:58 -0800 |
commit | 38e65cfbec05fc4baabed8a24d6692dfad78ba5c (patch) | |
tree | b9755e8aa8268b363cc09c7d3d325720da34e903 | |
parent | d4aec2c73cbf130f8c7ef174340eb959ca52fd7f (diff) | |
download | cdlog-master.tar.gz cdlog-master.tar.bz2 cdlog-master.zip |
* cdlog.sh (cdlog.unalias); Improve the test for
undefined alias, which is wrongly treating empty
as undefined.
-rw-r--r-- | cdlog.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -503,7 +503,7 @@ cdlog.unalias() local alias for alias in "$@"; do - if [ -n "${cdlog_alias[$alias]-}" ]; then + if [ "${cdlog_alias[$alias]+y}" == y ]; then unset cdlog_alias[$alias] else printf "no such cdlog alias: %s\n" "$alias" |