From bca250b0b2a1df4ceb939b71a269f71501fda024 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 30 Jul 2026 03:21:52 +0000 Subject: Prepare for 2.10.0.0; remove pedantic posix; support loopwhilex -x "" --- .gitignore | 5 +- NEWS | 11 ++ configure | 13 -- doc/cd.html | 60 +++++++ doc/execline-cd.html | 55 ------- doc/execline-umask.html | 51 ------ doc/index.html | 10 +- doc/loopwhilex.html | 10 +- doc/posix-cd.html | 66 -------- doc/posix-umask.html | 74 --------- doc/umask.html | 61 ++++++++ doc/upgrade.html | 10 ++ package/configure-snippets/configure_case_lines | 2 - .../configure-snippets/configure_generate_configh | 4 - package/configure-snippets/configure_generate_make | 5 - package/configure-snippets/configure_help_options | 1 - package/configure-snippets/configure_init_vars | 1 - package/deps.mak | 19 +-- package/info | 2 +- package/modes | 6 +- package/targets.mak | 11 +- src/execline/cd.c | 17 ++ src/execline/deps-exe/cd | 1 + src/execline/deps-exe/execline-cd | 1 - src/execline/deps-exe/execline-umask | 1 - src/execline/deps-exe/posix-cd | 1 - src/execline/deps-exe/posix-umask | 1 - src/execline/deps-exe/umask | 1 + src/execline/emptyenv.c | 36 ++--- src/execline/execline-cd.c | 17 -- src/execline/execline-umask.c | 19 --- src/execline/loopwhilex.c | 102 +++++++----- src/execline/posix-cd.c | 160 ------------------- src/execline/posix-umask.c | 174 --------------------- src/execline/posix-umask.txt | 37 ----- src/execline/redirfd.c | 94 +++++------ src/execline/umask.c | 158 +++++++++++++++++++ src/execline/umask.txt | 37 +++++ src/execline/wait.c | 45 +++--- tools/gen-multicall.sh | 20 +-- 40 files changed, 525 insertions(+), 874 deletions(-) create mode 100644 doc/cd.html delete mode 100644 doc/execline-cd.html delete mode 100644 doc/execline-umask.html delete mode 100644 doc/posix-cd.html delete mode 100644 doc/posix-umask.html create mode 100644 doc/umask.html create mode 100644 src/execline/cd.c create mode 100644 src/execline/deps-exe/cd delete mode 100644 src/execline/deps-exe/execline-cd delete mode 100644 src/execline/deps-exe/execline-umask delete mode 100644 src/execline/deps-exe/posix-cd delete mode 100644 src/execline/deps-exe/posix-umask create mode 100644 src/execline/deps-exe/umask delete mode 100644 src/execline/execline-cd.c delete mode 100644 src/execline/execline-umask.c delete mode 100644 src/execline/posix-cd.c delete mode 100644 src/execline/posix-umask.c delete mode 100644 src/execline/posix-umask.txt create mode 100644 src/execline/umask.c create mode 100644 src/execline/umask.txt diff --git a/.gitignore b/.gitignore index 5118c05..dff0c8d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ /background /backtick /case +/cd /define /dollarat /elgetopt @@ -20,8 +21,6 @@ /envfile /exec /execlineb -/execline-cd -/execline-umask /exit /export /export-array @@ -49,8 +48,6 @@ /multisubstitute /pipeline /piperw -/posix-cd -/posix-umask /redirfd /runblock /shift diff --git a/NEWS b/NEWS index a42f9a7..a69510f 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,16 @@ Changelog for execline. +In 2.10.0.0 +----------- + + - --enable-pedantic-posix option removed. + - execline-cd is now cd. + - posix-umask is now umask. + - execline-umask and posix-cd removed. + - loopwhilex -n option removed. + - loopwhilex -x "" now loops forever. + + In 2.9.9.2 ---------- diff --git a/configure b/configure index 323ce07..d6ed5c4 100755 --- a/configure +++ b/configure @@ -51,7 +51,6 @@ Optional features: --enable-slashpackage[=ROOT] assume /package installation at ROOT [disabled] --enable-absolute-paths hardcode absolute BINDIR/foobar paths in binaries [disabled] --enable-nsss use the nsss library for user information [disabled] - --enable-pedantic-posix use pedantically POSIX-compatible binaries [disabled] --enable-multicall build a multicall binary [disabled] EOF @@ -176,7 +175,6 @@ vpathd='' build= shebangisdefault=true usensss=false -pposix=false multicall=false for arg ; do @@ -220,8 +218,6 @@ for arg ; do --shebangdir=*) shebangisdefault=false ; shebangdir=${arg#*=} ;; --enable-nsss|--enable-nsss=yes) usensss=true ;; --disable-nsss|--enable-nsss=no) usensss=false ;; - --enable-pedantic-posix|--enable-pedantic-posix=yes) pposix=true ;; - --disable-pedantic-posix|--enable-pedantic-posix=no) pposix=false ;; --enable-multicall|--enable-multicall=yes) multicall=true ;; --disable-multicall|--enable-multicall=no) multicall=false ;; --enable-*|--disable-*|--with-*|--without-*|--*dir=*) ;; @@ -543,11 +539,6 @@ else echo "LIBNSSS :=" echo "MAYBEPTHREAD_LIB :=" fi -if $pposix ; then - echo "PEDANTIC_POSIX := 1" -else - echo "PEDANTIC_POSIX :=" -fi if $multicall ; then echo "MULTICALL := 1" else @@ -586,10 +577,6 @@ echo "#define ${package_macro_name}_LIBEXECPREFIX \"$libexecdir/\"" echo "#define ${package_macro_name}_SYSCONFPREFIX \"$sysconfdir/\"" echo "#define ${package_macro_name}_SHEBANGPREFIX \"$shebangdir/\"" echo -echo "#undef ${package_macro_name}_PEDANTIC_POSIX" -if $pposix ; then -echo "#define ${package_macro_name}_PEDANTIC_POSIX" -fi echo echo "#endif" exec 1>&3 3>&- diff --git a/doc/cd.html b/doc/cd.html new file mode 100644 index 0000000..fbd6687 --- /dev/null +++ b/doc/cd.html @@ -0,0 +1,60 @@ + + + + + + + execline: the cd command + + + + + + +

+execline
+Software
+skarnet.org +

+ +

The cd program

+ +

+cd changes the current working directory to a +given directory, then executes a program. +

+ +

Interface

+ +
+     cd dir prog...
+
+ +

+cd performs a +chdir() +system call on dir, then execs into prog.... +

+ +

Notes

+ + + + + diff --git a/doc/execline-cd.html b/doc/execline-cd.html deleted file mode 100644 index 6d55142..0000000 --- a/doc/execline-cd.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - execline: the execline-cd command - - - - - - -

-execline
-Software
-skarnet.org -

- -

The execline-cd program

- -

-execline-cd changes the current working directory to a -given directory, then executes a program. -

- -

Interface

- -
-     execline-cd dir prog...
-
- -

-execline-cd performs a -chdir() -system call on dir, then execs into prog.... -

- -

Notes

- - - - - - diff --git a/doc/execline-umask.html b/doc/execline-umask.html deleted file mode 100644 index e0aa76f..0000000 --- a/doc/execline-umask.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - execline: the execline-umask command - - - - - - -

-execline
-Software
-skarnet.org -

- -

The execline-umask program

- -

-execline-umask sets the umask (file creation mask), -then executes a program. -

- -

Interface

- -
-     execline-umask mask prog...
-
- -

-execline-umask sets the current umask to mask, -then execs into prog.... -

- -

Notes

- - - - - diff --git a/doc/index.html b/doc/index.html index e57e4af..075fcf9 100644 --- a/doc/index.html +++ b/doc/index.html @@ -78,8 +78,8 @@ want nsswitch-like functionality:

Download