Package Details: posh 0.14.2-1

Git Clone URL: https://aur.archlinux.org/posh.git (read-only, click to copy)
Package Base: posh
Description: A stripped-down version of pdksh that aims for compliance with Debian's policy, and few extra features.
Upstream URL: https://salsa.debian.org/clint/posh
Licenses: custom
Submitter: openglfreak
Maintainer: openglfreak
Last Packager: openglfreak
Votes: 2
Popularity: 0.000000
First Submitted: 2019-02-04 07:40 (UTC)
Last Updated: 2025-11-27 08:38 (UTC)

Latest Comments

mback commented on 2025-11-26 16:01 (UTC) (edited on 2025-11-26 16:02 (UTC) by mback)

The posh shell seems to me to be targeting down to the lowest level OS's and compilers that would support POSIX. It makes perfect sense therefore for the author to want to use K&R syntax so that the code could support as many compilers as possible. Let's explicitly state that warnings for old style and obsolete syntax should be ignored. Doing so eliminates multiple warnings when building (with GCC) on modern systems.

diff --git a/PKGBUILD b/PKGBUILD
index b097294..a4ffb64 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,6 +13,9 @@ install="$pkgname".install
 source=(http://deb.debian.org/debian/pool/main/p/posh/posh_"$pkgver".tar.xz)
 sha256sums=('3584292529b0d8274ccc76adf1acefcca8ad9a1a5d7d7448f099c129401ffa3c')

+# This project strives to support the oldest compilers possible
+CFLAGS+=" -Wno-old-style-declaration -Wno-old-style-definition"
+
 build() {
   cd "$srcdir/$pkgname-$pkgver"