Zeitpunkt Nutzer Delta Tröts TNR Titel Version maxTL Sa 13.07.2024 00:00:08 61.948 +1 3.539.632 57,1 Fosstodon 4.2.10 500 Fr 12.07.2024 00:01:45 61.947 +6 3.537.376 57,1 Fosstodon 4.2.10 500 Do 11.07.2024 00:00:37 61.941 +12 3.533.951 57,1 Fosstodon 4.2.10 500 Mi 10.07.2024 00:00:53 61.929 +5 3.530.507 57,0 Fosstodon 4.2.10 500 Di 09.07.2024 00:00:08 61.924 +2 3.527.175 57,0 Fosstodon 4.2.10 500 Mo 08.07.2024 00:00:19 61.922 +5 3.524.369 56,9 Fosstodon 4.2.10 500 So 07.07.2024 00:00:04 61.917 0 3.522.885 56,9 Fosstodon 4.2.10 500 Sa 06.07.2024 00:00:07 61.917 -2 3.523.632 56,9 Fosstodon 4.2.10 500 Fr 05.07.2024 00:00:27 61.919 0 3.520.710 56,9 Fosstodon 4.2.10 500 Do 04.07.2024 00:00:52 61.919 0 3.517.337 56,8 Fosstodon 4.2.9 500
R. L. Dane :debian: :openbsd: (@RL_Dane) · 04/2022 · Tröts: 32.756 · Folger: 1.739
Sa 13.07.2024 21:18
#TIL that bash's regex syntax gets confused sometimes, so it's best to do something like this:
~ $ size="1024 768"
~ $ [[ $size =~ ^[0-9]+ [0-9]+$ ]]
bash: syntax error in conditional expression
~ $ regex="^[0-9]+ [0-9]+$"
~ $ [[ $size =~ $regex ]]; echo $?
bash: syntax error near unexpected token `$size'
~ $ [[ $size =~ $regex ]]; echo $?
0
~ $
Umm... that second syntax error, I cannot account for.
@mirabilos, any idea what bash is smoking here???
[Öffentlich] Antw.: 0 Wtrl.: 0 Fav.: 0 · via toot - a Mastodon CLI client