aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-08-26 01:09:46 -0400
committertdro <tdro@users.noreply.github.com>2020-08-26 01:09:46 -0400
commitf7b64dd0184afcf81fb8c601cebcdbeb2d973bb5 (patch)
tree265381c915d484d91146fb7b1601f9da12abe415 /.local
parentc3d2b57e84c58fbb10d1ce28960af8689d01b389 (diff)
downloaddotfiles-f7b64dd0184afcf81fb8c601cebcdbeb2d973bb5.tar.gz
dotfiles-f7b64dd0184afcf81fb8c601cebcdbeb2d973bb5.tar.bz2
dotfiles-f7b64dd0184afcf81fb8c601cebcdbeb2d973bb5.zip
.local/bin/dmenu_run_history: Fix path parse
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/dmenu_run_history8
1 files changed, 4 insertions, 4 deletions
diff --git a/.local/bin/dmenu_run_history b/.local/bin/dmenu_run_history
index ab1cb73..73fac27 100755
--- a/.local/bin/dmenu_run_history
+++ b/.local/bin/dmenu_run_history
@@ -15,12 +15,12 @@ else
fi
IFS=:
-if stest -dqr -n "$cache" "$PATH"; then
- stest -flx "$PATH" | sort -u > "$cache"
+if stest -dqr -n "$cache" $PATH; then
+ stest -flx $PATH | sort -u > "$cache"
fi
unset IFS
-awk -v histfile="$historyfile" '
+awk -v histfile=$historyfile '
BEGIN {
while( (getline < histfile) > 0 ) {
sub("^[0-9]+\t","")
@@ -29,7 +29,7 @@ awk -v histfile="$historyfile" '
}
} !x[$0]++ ' "$cache" \
| dmenu -b $dmenu_args "$@" \
- | awk -v histfile="$historyfile" '
+ | awk -v histfile=$historyfile '
BEGIN {
FS=OFS="\t"
while ( (getline < histfile) > 0 ) {