aboutsummaryrefslogtreecommitdiffstats
path: root/LICENSE
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-29 11:33:14 +0200
committerDanilo M. <danix@danix.xyz>2026-06-29 11:33:14 +0200
commit96aa95a3ee3800ba5b63ae1da8221eac1a58b9f4 (patch)
treeb28004c005ef13b2595f4c285c519b084dce8811 /LICENSE
parent1e28c6726ba601f43330c1b9a82389b17393442b (diff)
downloadis_installed-96aa95a3ee3800ba5b63ae1da8221eac1a58b9f4.tar.gz
is_installed-96aa95a3ee3800ba5b63ae1da8221eac1a58b9f4.zip
Speed up file-search and fix quoting/info bugs
Replace per-line $(echo|cut) and $(basename) in search_file with bash parameter expansion (${line%%:*}, ${line#*:}, ${pkgname##*/}). On a 2504-package system this turns a broad 'lib' search from a >15min hang into 3.3s, and 'zlib' from 1.5s to 0.04s. Also: - info: guard single match via mapfile; list candidates on multiple matches instead of feeding less a broken multi-line path. - Quote $1/$2/$PKGS_PATH so empty args and spaces are handled. - Blank the color vars when stdout is not a TTY (no ANSI in pipes). - $(basename $0) -> ${0##*/}, /bin/ls -> ls. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions