[jhalfs] branch trunk updated: "&>" is not recognized by some shells
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <170213291582.8784.18405280652487312769@rivendell.linuxfromscratch.org> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository jhalfs.
The following commit(s) were added to refs/heads/trunk by this push:
new 41a4032 "&>" is not recognized by some shells
41a4032 is described below
commit 41a4032ad6f67fec3622c725b2793836efcb319a
Author: Pierre Labastie <[email protected]>
AuthorDate: Sat Dec 9 15:39:43 2023 +0100
"&>" is not recognized by some shells
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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page