Nimbin[12]?Mirrors & Forks / jhalfs / commits / 41a4032

jhalfs git · trunk

jhalfs LFS build automation (mirror)

lfs mirror bash · first commit 2005-09-11 · last commit 2024-02-13 (2 years ago) · synced 3 days ago · upstream: git.linuxfromscratch.org/jhalfs

Python 78.4% Shell 19.8% Makefile 1.8%
git clone https://git.christianimmanuel.de/mirrors-forks/jhalfs.gitwget https://git.christianimmanuel.de/mirrors-forks/jhalfs/archive/jhalfs.tar.gz

"&>" is not recognized by some shells

Pierre Labastie · 2023-12-09 14:39 · 41a4032ad6f67fec3622c725b2793836efcb319a

Since jhalfs may be run on dsitros where the default shell invoked
by python is not bash, it may happen that "&>" does not produce
the expected result. Fix by using the "posix" way: ">xxx 2>&1".
 Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Config.in b/Config.in
index ef3779e..63eef43 100644
--- a/Config.in
+++ b/Config.in
@@ -1,6 +1,6 @@
 # Check for "nproc" presence:
 config HAVE_NPROC
-    def_bool $(shell,if nproc &>/dev/null; then echo y; else echo n; fi)
+    def_bool $(shell,if nproc >/dev/null 2>&1; then echo y; else echo n; fi)
 
 # Check for "cpuset controller in cgroup v2" presence:
 config HAVE_CGROUP