pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
shellharden: update to 4.3.0
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Thu Apr 27 14:09:32 2023 +0200
Changeset: a8ec56885be766fd52c867cfce716eca091d22c1
Modified Files:
TODO
shellharden/Makefile
shellharden/distinfo
Log Message:
shellharden: update to 4.3.0
*One long awaited rule change*
* Unnecessary braces on variable expansions in string interpolations are now
allowed.
*More helpful with `for` and `test`*
* Variables that must necessarily be arrays in order to be quoted now become
array expansions instead of simply being quoted
(they must still manually be changed to arrays):
* `for i in $a` → `for i in "${a[@]}"`
* Rewriting array serialization to array expansion in contexts where quoting
is needed, now also for named arrays
(analogous to `$*` → `"$@"`):
* `${a[*]}` → `"${a[@]}"`
* `test` command normalization (see the howto for justification):
* Empty string tests:
* `test -n "$s"` → `test "$s" != ""`
* `test -z "$s"` → `test "$s" = ""`
* xyes deemed unnecessary:
* `test x"$s" = xyes` → `test "$s" = yes`
* Bugfix: Fix lookahead on short read. See commit 21904cce1.
*A pandemy's worth of maintenance*
(when "Covid" stopped being a perfect name for a video conferencing company)
* Syntactic fixes
* Fix nested case (#37)
* Recognise nested variable expansion (#39)
* Recognise arithmetic statement (#42)
* Recognise export assignments (like local, declare, readonly)
* Allow unquoted $* in contexts where quoting is not required, such as s=$*
* Recognise negation, or rather that what follows is in command position,
as needed to recognise assignments like || ! s=$i in loop conditons.
* \`pwd\` rewrites to $PWD, also where quoting is not required
(this was an oversight)
* Feature fixes
* --check no longer leaks out syntax errors or other error output.
* Testing
* Make tests run on GitHub
* Find & test the right build's executable (debug/release), not just both.
* Test that Shellharden is idempotent and exercise --check on current tests
* Color:
* Brighten the comment color 3× for readability on IPS screens where dark
colors look black (or KDE Breeze's not so black terminal background).
* Change 'single quoted string' from yellow to gold.
* Use 3-bit background color for terminals that don't support 24-bit color.
This is merely the most important coloring; the syntax is still
highlighted in 24-bit color and requires a 24-bit terminal to see.
* Change color lazily (less work for the terminal).
*One refactoring, plenty of necessary fixes*
* Fix old bug: Wrong quoting of associative array assignments (#31)
* More permissive: Allow unquoted arguments to local, declare and readonly (#30)
* Consistency: Rewrite `` `pwd` `` → `$PWD` directly, not via `$(pwd)`
* Compatibility with newer Rust: rustc 1.37 through 1.41 and 2018 edition
* Less code: Collapse nested enums in oft-used return type
* Maintainers: Cargo.lock is now included (#28)
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a8ec56885be766fd52c867cfce716eca091d22c1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
TODO | 1 -
shellharden/Makefile | 2 +-
shellharden/distinfo | 6 +++---
3 files changed, 4 insertions(+), 5 deletions(-)
diffs:
diff --git a/TODO b/TODO
index 97a2051f8c..f83ad72703 100644
--- a/TODO
+++ b/TODO
@@ -127,7 +127,6 @@ Suggested package updates
o scrc-2.2
o sdlpop-1.17
o sflphoned-0.7.2
- o shellharden-4.3.0
o slim-1.3.6
o smc-1.9
o smplayer-15.9
diff --git a/shellharden/Makefile b/shellharden/Makefile
index ba396e14d5..cf56e9ee4e 100644
--- a/shellharden/Makefile
+++ b/shellharden/Makefile
@@ -1,6 +1,6 @@
# $NetBSD$
-DISTNAME= shellharden-4.1.1
+DISTNAME= shellharden-4.3.0
MASTER_SITES= ${MASTER_SITE_GITHUB:=anordal/}
GITHUB_TAG= v${PKGVERSION_NOREV}
CATEGORIES= shells
diff --git a/shellharden/distinfo b/shellharden/distinfo
index 41c60e6b2b..895bb3a8e2 100644
--- a/shellharden/distinfo
+++ b/shellharden/distinfo
@@ -1,5 +1,5 @@
$NetBSD$
-RMD160 (shellharden-4.1.1.tar.gz) = 541386c92294d310abbcf045f0692a946d567c14
-SHA512 (shellharden-4.1.1.tar.gz) = 994c08c7ee228e4d76c307a2117df4667bbc66cd1d794d43c8be7356faf8c1611b6cb297d17768b4e228e77b24f2c4d2148d08cac341e861f49e9fc0dbd813a0
-Size (shellharden-4.1.1.tar.gz) = 183147 bytes
+BLAKE2s (shellharden-4.3.0.tar.gz) = d16b3bdfdd8b961ab4265a20b3a501d0f82702a275555293febb117e9418d0dc
+SHA512 (shellharden-4.3.0.tar.gz) = b03303a179cc6aa16224c138444b6d2a7b0f697a9f5f736761e0aa36bb03893aad1707bc4df6bb2d59da698104289a4189353cbf123bbdd9b6de15f1206edfa8
+Size (shellharden-4.3.0.tar.gz) = 191795 bytes
Home |
Main Index |
Thread Index |
Old Index