Tiny feature request for slapt-mod
Posted: 27 May 2025, 21:32
My puzzle for today...
If you want to search a package with a short name, e.g. the line editor named after a great contributor to this forum, you get a lot of results.
But if you change line 110 of slapt-mod from:
to:
the results list is reduced from 1111 to 10, and the more exacting
gives only the two correct results.
Could this behaviour be introduced as another mode, e.g. -s for contains, -S for exact match?
If you want to search a package with a short name, e.g. the line editor named after a great contributor to this forum, you get a lot of results.
Code: Select all
root@porteus:/home/guest# slapt-mod -s ed | wc -l
1111
root@porteus:/home/guest#
Code: Select all
slapt-get --available | grep -i $PKG | awk '{print $1,"",substr($0,index($0,$4))}'
Code: Select all
slapt-get --available | grep -i -E "^$PKG" | awk '{print $1,"",substr($0,index($0,$4))}'
Code: Select all
slapt-get --available | grep -i -E "^$PKG-" | awk '{print $1,"",substr($0,index($0,$4))}'
Could this behaviour be introduced as another mode, e.g. -s for contains, -S for exact match?