# HG changeset patch # User Pascal Bellard # Date 1569402387 -7200 # Node ID 7a22ba39ec411b45de335b341983773cba6e14b6 # Parent 3525dfa8c4795ad4cb593ed8c88fce41c649c1e8 busybox/command_not_found: use $PATH (again) diff -r 3525dfa8c479 -r 7a22ba39ec41 busybox/stuff/command_not_found --- a/busybox/stuff/command_not_found Wed Sep 25 10:59:33 2019 +0200 +++ b/busybox/stuff/command_not_found Wed Sep 25 11:06:27 2019 +0200 @@ -2,8 +2,8 @@ FILES=/var/lib/tazpkg/files.list.lzma LIST=/tmp/command-list.gz -[ ! $LIST -nt $FILES ] && unlzma <$FILES | \ -grep -E "(: $(echo ${PATH//:/|: }))" | gzip -9 >$LIST && chmod 666 $LIST +[ ! $LIST -nt $FILES ] && unlzma <$FILES | grep -E "(: ${PATH//:/|: })" | \ +gzip -9 >$LIST && chmod 666 $LIST lookup() { zcat $LIST | grep "/$2$1$" | while read pkg file; do