#tde-devs < 2026/01/10 >
[00:12]SlavekB has joined
[07:41]SlavekB has quit (Quit: Kopete 0.12.7 : http://trinitydesktop.org)
[12:23]micheleC has joined
[13:28]micheleC: @denk: try replacing "[0-9]+" with "[0-9][0-9]*"
[13:38]denk: asus% tde-config --version | sed -n 's|^TDE: \(R[0-9][0-9]*\.[0-9]+\)\.[0-9]+[^0-9]*|\1|p'
[13:38]denk: asus% tde-config --version | sed -n 's|^TDE: \(R[0-9][0-9]*\.[0-9][0-9]*\)\.[0-9]+[^0-9]*|\1|p'
[13:38]denk: asus% tde-config --version | sed -n 's|^TDE: \(R[0-9][0-9]*\.[0-9][0-9]*\)\.[0-9][0-9]*[^0-9]*|\1|p'
[13:38]denk: R14.2
[13:57]micheleC: :-(
[13:58]micheleC: that regex should be POSIX complaint AFAICT
[14:01]micheleC: if you replace [0-9] with [[:digit:]] what do you get?
[14:02]micheleC: [^0-9] becomes [^[:digit:]]
[14:04]denk: asus% tde-config --version | sed -n 's|^TDE: \(R[[:digit:]][:digit:]*\.[:digit:][:digit:]*\)\.[:digit:][:digit:]*[^[:digit:]]*|\1|p'
[14:04]denk: asus%
[14:05]denk: asus% tde-config --version | sed -n 's|^TDE: \(R[[:digit:]][[:digit:]]*\.[[:digit:]][[:digit:]]*\)\.[[:digit:]][[:digit:]]*[^[:digit:]]*|\1|p'
[14:05]denk: R14.2
[14:13]micheleC: (y)
[14:13]denk: will you fix it in the repo?
[14:14]micheleC: ok
[14:14]denk: thanks!
[14:14]micheleC: no worries
[14:15]micheleC: do the regex in tde_release_notes file work as they are?
[14:16]micheleC: or do they also need fixing?
[14:17]denk: let me to test it
[14:19]micheleC: ok
[14:19]denk: https://paste.dilos.org/?9642bca2f887b719#L0G/HpcWCBPky5L6sALKs+gMINhiq2O/vR60FCE422M=
[14:19]tde-bot: Page title: PrivateBin
[14:27]micheleC: not those ones
[14:27]micheleC: I mean these ones
[14:27]micheleC: RELEASE_VERSION="$( ${TDEDIR}/bin/tde-config --version | sed -n 's|^TDE: ||p' )"RELEASE_NOTES="$( ${TDEDIR}/bin/kreadconfig --file ${TDEHOME}/share/config/kdeglobals --group "Release Notes" --key "$RELEASE_VERSION" )"RELEASE_SERIES="$( ${TDEDIR}/bin/tde-config --version | sed -n 's|^TDE: \([^\.]*\.[^\.]*\).*|\l\1.x|p' )"
[14:28]micheleC: they are in "tde_release_notes" file in tdebase
[14:30]denk: https://paste.dilos.org/?947a48f0b7390694#L7RJUVZ6mOj7AoW5tzvdNhDsjxYD96wdT3QtoBcjjJc=
[14:30]tde-bot: Page title: PrivateBin
[14:30]denk: what's wrong?
[14:30]denk: I ran the same file, just with -x to see what it does
[14:32]denk: lines 4-6 are an assingment from the script (line 16)
[14:36]denk: btw, [ "$TDEDIR" = "" ] is so strange for a script
[14:36]denk: usualy I use if [ -z "${var}" ]
[14:38]denk: also the variables can have some "dump"
[14:38]denk: for examle, TDEDIR="000"
[14:40]denk: and yes, I am a very evil developer :)
[14:40]denk: I see at code and think how to hack it, and then how it works...
[14:41]micheleC: your screenshot is about a different file
[14:41]micheleC: tde_show_license_info instead of tde_release_notes
[14:41]denk: ok, wait please
[14:42]denk: https://paste.dilos.org/?81a68361237357c3#U7ENoGCfuuxLbABu8gHBcXPDkyvt0H4pUN2CtOY5Psc=
[14:42]tde-bot: Page title: PrivateBin
[14:43]denk: https://paste.dilos.org/?24b921b9122539e1#g0PIl1X17EAbF0Ps/4XO0wYPBjfS0QS6wt6mpIV0fvU=
[14:43]tde-bot: Page title: PrivateBin
[14:46]micheleC: seems to work
[14:46]micheleC: so only one regex to fix for you
[14:47]denk: I hope it is
[14:53]micheleC has quit (Read error: Connection reset by peer)
[15:01]micheleC has joined
[15:02]micheleC: I will push PR tomorrow, I have some issues with my ssh agent and I need to figure that out first
[15:02]micheleC: suddenly doesn't work any more :-(
[15:07]micheleC has quit (Quit: Kopete 0.12.7 : http://trinitydesktop.org)
[23:53]SlavekB has joined

#tde-devs < 2026/01/10 >