diff --git a/scripts/fixtures/release/prior-1-nonl.xml b/scripts/fixtures/release/prior-1-nonl.xml
new file mode 100644
index 00000000..31030af3
--- /dev/null
+++ b/scripts/fixtures/release/prior-1-nonl.xml
@@ -0,0 +1,26 @@
+
+
+
+ Hidden Bar
+ https://github.com/dwarvesf/hidden
+ Hidden Bar updates
+ en
+
+ Version 1.11.2
+ Sun, 15 Nov 2026 06:50:21 GMT
+ 17
+ 1.11.2
+ 13.0
+ https://github.com/dwarvesf/hidden/releases/tag/v1.11.2
+
+
macOS 27: clicking the clock opens Notification Center again.
+
Icons you keep right of the arrow stay visible.
+
Microphone and camera indicators are no longer hidden.
+
Multi-display fixes, auto-update, and Turkish, Ukrainian and Italian translations.
+
+]]>
+
+
+
+
\ No newline at end of file
diff --git a/scripts/release.sh b/scripts/release.sh
index a508c323..72e44b47 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -511,8 +511,11 @@ readback_new_item() { # appcast build short min-os url length : rc 1 and the mis
}
cut_cmp_prior() { # new-appcast prior-appcast scratch : the new feed minus its first item is byte-identical to the prior
+ # awk ends its output with a newline, so the prior side gets one too when its last byte is
+ # not one (the published 1.13.0 feed has none); every other byte still has to match
awk 's==0 && $0==" "{s=1; next} s==1{ if ($0==" ") s=2; next } {print}' "$1" > "$3"
- cmp -s "$3" "$2"
+ { cat "$2"; [ -z "$(tail -c 1 "$2")" ] || printf '\n'; } > "$3.prior"
+ cmp -s "$3" "$3.prior"
}
count_items() { grep -cxF ' ' "$1"; }
diff --git a/scripts/test-release.sh b/scripts/test-release.sh
index db365579..b6a5edc5 100755
--- a/scripts/test-release.sh
+++ b/scripts/test-release.sh
@@ -194,6 +194,17 @@ altered_prior() {
! cmp -s "$WORK/feed-alt.xml" "$WORK/feed-1.xml" && ! cut_cmp_prior "$WORK/feed-alt.xml" "$F/prior-1.xml" "$WORK/cut4"
}
t cut-cmp-detects-altered-prior altered_prior
+prior_no_final_newline() { # a published feed with no newline after (as v1.13.0's) still compares equal
+ [ -n "$(tail -c 1 "$F/prior-1-nonl.xml")" ] &&
+ "$H" appcast --prior "$F/prior-1-nonl.xml" --item "$WORK/item-19.xml" --out "$WORK/feed-nonl.xml" &&
+ [ "$(count_items "$WORK/feed-nonl.xml")" = 2 ] && cut_cmp_prior "$WORK/feed-nonl.xml" "$F/prior-1-nonl.xml" "$WORK/cut5"
+}
+t cut-cmp-prior-no-final-newline prior_no_final_newline
+altered_prior_no_final_newline() { # the newline allowance never hides a real byte change
+ sed 's|Sun, 15 Nov 2026 06:50:21 GMT|Sun, 15 Nov 2026 06:50:22 GMT|' "$WORK/feed-nonl.xml" > "$WORK/feed-nonl-alt.xml"
+ ! cmp -s "$WORK/feed-nonl-alt.xml" "$WORK/feed-nonl.xml" && ! cut_cmp_prior "$WORK/feed-nonl-alt.xml" "$F/prior-1-nonl.xml" "$WORK/cut6"
+}
+t cut-cmp-no-final-newline-detects-altered altered_prior_no_final_newline
# ---- app checks on throwaway ad-hoc bundles --------------------------------------------