#kisslinux

Unnofficial KISS Linux community channel | https://kisscommunity.bvnf.space | post logs or else | song of the day https://vid.puffyan.us/H7PvgY65OxA
Earlier messages
<illiliti>what are you trying to do?
<testuser[m]>make pkg_conflicts do grep -E '(/usr/bin/file1|/usr/bin/file2|...)' /var/db/kiss/installed/*/manifest
<testuser[m]>instead of making file1 file2 as individual patterns
<testuser[m]>grep can make a trie with -E
midfavilaquit (Remote host closed the connection)
<illiliti>it already does it via -f, no?
<phoebos>escape .[\*^$, don't escape 1-9(){}
<illiliti>-f pattern_file
<phoebos>oh yeah thats a better way
<testuser[m]>illiliti: no
<testuser[m]>what it does with -f is equivalent to -e
<testuser[m]>not -E
midfavilajoined
<testuser[m]>and that works cuz it tells grep to treat is as a string not a pattern
<testuser[m]>so .* | etc arent an issue
<illiliti>why do you need -E
<testuser[m]>but to make it go big fast it must be made into a ( pattern )
<phoebos>is the grep -Fxf the slow bit
<testuser[m]>for fast
<testuser[m]>look
<testuser[m]>wait
<illiliti>i would say that -E is slower
<illiliti>generally
<testuser[m]>https://termbin.com/m9fi
<testuser[m]>ignore the partial matches i have to figure that out
<midfavila>-E being slower would make sense considering it uses a more complex regex engine.
<testuser[m]>116x diff
<illiliti>which grep?
<testuser[m]>busybox
<illiliti>try gnu
midfavilaquit (Quit: Leaving.)
<testuser[m]>hmmmm yea its 0s vs 0.06s
<testuser[m]>ig ggrep does this sort of optimization by itself
<illiliti>just use gnu grep
<illiliti>no need to attempt to workaround busybox using -E and stuff like that
<illiliti>iirc freebsd grep is also fast
<testuser[m]>btw
<testuser[m]>like wireguard-tools's wg-quick needs /usr/bin/ip set to iproute2
<testuser[m]>what would be a good way to indicate that somewhere
<testuser[m]>i mean like without swapping /usr/bin/ip
<testuser[m]>prefixing all of iproute's binaries?
<illiliti>post-install message
<testuser[m]>but it seems hacky
<testuser[m]>busybox so bad
<testuser[m]>[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
<testuser[m]>ip: invalid argument '51820' to 'table'
<testuser[m]>is this something missing inside busybox or an actual bug
<illiliti>the ideal option would be to make it work with busybox
<illiliti>probably busybox has no idea about table arg
<testuser[m]>then thats probably out of scope for a KISS specific patch
Later messages