From 1c66773ff4269092521466a38cd982fde76ab43e Mon Sep 17 00:00:00 2001 From: wkh Date: Sun, 11 Oct 2026 22:55:35 +0200 Subject: [PATCH] Version 0.6.0: Steuertabellen 2026, record mit negativen Nummern, select-Hinweis --- CHANGELOG.md | 4 +++- demo/testall.cmds | 8 +++++++- demo/testall.old | 22 ++++++++++++++++++++-- lib/rdb/version.rb | 2 +- 4 files changed, 31 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1a19d1..cf1444e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,13 @@ folgen [Semantic Versioning](https://semver.org/lang/de/). Die Version steht in ## [Unveröffentlicht] +## [0.6.0] - 2026-10-11 + ### Hinzugefügt - Steuertabellen 2026 für `tax`: `demo/taxDE2026`, `taxAT2026`, `taxCH2026` (nur Bundessteuer), `taxLI2026` (nur Landessteuer), erzeugt mit `tools/gen_tax_tables.rb`, mit Tests. ### Geändert -- `record`: 0 und 1 sind die erste Zeile, negative Zahlen zählen vom Ende (`-1` letzte, `-2` vorletzte ...). Außerhalb der Tabelle kommt eine leere Tabelle, Text und Dezimalzahlen sind ein Fehler. (Vorher lieferten 0, -1 und Text ungewollt Zeilen vom Ende.) +- `record`: 0 und 1 sind die erste Zeile, negative Zahlen zählen vom Ende (`-1` letzte, `-2` vorletzte ...). Außerhalb der Tabelle kommt eine leere Tabelle, Text und Dezimalzahlen sind ein Fehler. (Vorher lieferten 0, -1 und Text ungewollt Zeilen vom Ende.) `testall.cmds` und `man/record.man` zeigen es. - README und `man/row.man` erklären, warum `select` in bash/zsh/ksh einen Syntaxfehler gibt und wie man es trotzdem aufruft. ### Behoben diff --git a/demo/testall.cmds b/demo/testall.cmds index 5ea6e65..5d653e4 100644 --- a/demo/testall.cmds +++ b/demo/testall.cmds @@ -23,8 +23,14 @@ rename Owner Person < owners ## number / Number: number the rows (number: rows only, Number: rows and the head) number < owners Number < owners -## record: print one record (the 3rd row) +## record: print one record. 0 and 1 are the first row, 3 the third, -1 the last, -2 the one before record 3 < inventory +record 0 < owners +record -1 < owners +record -2 < owners +## beyond the end: an empty table; not a number: an error +record 9 < owners +record abc < owners ## rmblank: drop empty rows; headon / headoff: add or strip the head column Item Cost < inventory | rmblank headoff < colors diff --git a/demo/testall.old b/demo/testall.old index bf9a3ac..84296f3 100644 --- a/demo/testall.old +++ b/demo/testall.old @@ -86,11 +86,29 @@ Number Item Owner 1 1 ann 2 3 bob 3 6 cy -## record: print one record (the 3rd row) +## record: print one record. 0 and 1 are the first row, 3 the third, -1 the last, -2 the one before $ record 3 < inventory Item Amount Cost Value Description ---- ------ ---- ----- ----------- 3 5 8.00 40.00 clamps +$ record 0 < owners +Item Owner +---- ----- +1 ann +$ record -1 < owners +Item Owner +---- ----- +6 cy +$ record -2 < owners +Item Owner +---- ----- +3 bob +## beyond the end: an empty table; not a number: an error +$ record 9 < owners +Item Owner +---- ----- +$ record abc < owners +record: 'abc' is not a record number (1, 2, 3 ... or -1 for the last) ## rmblank: drop empty rows; headon / headoff: add or strip the head $ column Item Cost < inventory | rmblank Item Cost @@ -845,7 +863,7 @@ Item Amount Cost Value Description ## tabletom4 / tabletosed / tabletostruct were shown above ## ===== Help and the terminal ===== $ rdb --version -rdb 0.5.0 +rdb 0.6.0 $ howmany 136 $ whatis row diff --git a/lib/rdb/version.rb b/lib/rdb/version.rb index ce9e3c4..78388fc 100644 --- a/lib/rdb/version.rb +++ b/lib/rdb/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Rdb - VERSION = '0.5.0' + VERSION = '0.6.0' end