wok rev 21870

busybox/command_not_found: use $PATH (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 25 11:06:27 2019 +0200 (2019-09-25)
parents 3525dfa8c479
children 352e1cee9466
files busybox/stuff/command_not_found
line diff
     1.1 --- a/busybox/stuff/command_not_found	Wed Sep 25 10:59:33 2019 +0200
     1.2 +++ b/busybox/stuff/command_not_found	Wed Sep 25 11:06:27 2019 +0200
     1.3 @@ -2,8 +2,8 @@
     1.4  
     1.5  FILES=/var/lib/tazpkg/files.list.lzma
     1.6  LIST=/tmp/command-list.gz
     1.7 -[ ! $LIST -nt $FILES ] && unlzma <$FILES | \
     1.8 -grep -E "(: $(echo ${PATH//:/|: }))" | gzip -9 >$LIST && chmod 666 $LIST
     1.9 +[ ! $LIST -nt $FILES ] && unlzma <$FILES | grep -E "(: ${PATH//:/|: })" | \
    1.10 +gzip -9 >$LIST && chmod 666 $LIST
    1.11  
    1.12  lookup() {
    1.13  	zcat $LIST | grep "/$2$1$" | while read pkg file; do