diff -Nru mksh-59c/debian/changelog mksh-59c/debian/changelog --- mksh-59c/debian/changelog 2023-02-14 18:48:24.000000000 +0000 +++ mksh-59c/debian/changelog 2023-02-15 15:04:53.000000000 +0000 @@ -1,3 +1,9 @@ +mksh (59c-26) unstable; urgency=medium + + * Fixup more update-shells breakage also found by piuparts + + -- Thorsten Glaser Wed, 15 Feb 2023 16:04:53 +0100 + mksh (59c-25) unstable; urgency=medium * Amend add-shell workaround to piuparts trouble caused by merged-usr… diff -Nru mksh-59c/debian/mksh.postinst mksh-59c/debian/mksh.postinst --- mksh-59c/debian/mksh.postinst 2023-02-14 18:40:49.000000000 +0000 +++ mksh-59c/debian/mksh.postinst 2023-02-15 15:03:11.000000000 +0000 @@ -152,10 +152,14 @@ ln -s /bin/ksh /usr/bin/ksh # add us to /etc/shells and clean up old add-shell-caused damage + # shellcheck disable=SC2046 mogrifyshells + /bin/mksh /bin/mksh-static \ - /usr/bin/mksh /usr/bin/mksh-static \ - /usr/lib/klibc/bin/mksh /usr/lib/diet/bin/mksh \ - /usr/lib/*-linux-musl/bin/mksh + $(for x in \ + /usr/lib/klibc/bin \ + /usr/lib/diet/bin \ + /usr/lib/*-linux-musl/bin \ + ; do echo "$x/mksh" "$x/mksh-static"; done) ;; (abort-upgrade|abort-remove|abort-deconfigure) diff -Nru mksh-59c/debian/mksh.prerm mksh-59c/debian/mksh.prerm --- mksh-59c/debian/mksh.prerm 2023-02-14 18:40:49.000000000 +0000 +++ mksh-59c/debian/mksh.prerm 2023-02-15 15:03:46.000000000 +0000 @@ -134,10 +134,14 @@ test '!' -h /usr/bin/ksh || test -e /usr/bin/ksh || rm -f /usr/bin/ksh # unadd us from /etc/shells; clean up old add-shell-caused damage + # shellcheck disable=SC2046 mogrifyshells - /bin/mksh /bin/mksh-static \ - /usr/bin/mksh /usr/bin/mksh-static \ - /usr/lib/klibc/bin/mksh /usr/lib/diet/bin/mksh \ - /usr/lib/*-linux-musl/bin/mksh + $(for x in \ + /usr/lib/klibc/bin \ + /usr/lib/diet/bin \ + /usr/lib/*-linux-musl/bin \ + ; do echo "$x/mksh" "$x/mksh-static"; done) ;; (upgrade|failed-upgrade)