projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
select: Simplify replacement idiom.
[gnulib.git]
/
m4
/
posix-shell.m4
diff --git
a/m4/posix-shell.m4
b/m4/posix-shell.m4
index
4c56193
..
709995d
100644
(file)
--- a/
m4/posix-shell.m4
+++ b/
m4/posix-shell.m4
@@
-1,6
+1,6
@@
# Find a POSIX-conforming shell.
# Find a POSIX-conforming shell.
-# Copyright (C) 2007-20
08
Free Software Foundation, Inc.
+# Copyright (C) 2007-20
11
Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@
-17,22
+17,22
@@
AC_DEFUN([gl_POSIX_SHELL],
AC_CACHE_CHECK([for a shell that conforms to POSIX], [gl_cv_posix_shell],
[gl_test_posix_shell_script='
func_return () {
AC_CACHE_CHECK([for a shell that conforms to POSIX], [gl_cv_posix_shell],
[gl_test_posix_shell_script='
func_return () {
- (exit [$]1)
+
(exit [$]1)
}
func_success () {
}
func_success () {
- func_return 0
+
func_return 0
}
func_failure () {
}
func_failure () {
- func_return 1
+
func_return 1
}
func_ret_success () {
}
func_ret_success () {
- return 0
+
return 0
}
func_ret_failure () {
}
func_ret_failure () {
- return 1
+
return 1
}
subshell_umask_sanity () {
}
subshell_umask_sanity () {
- (umask 22; (umask 0); test $(umask) -eq 22)
+
(umask 22; (umask 0); test $(umask) -eq 22)
}
test "[$](echo foo)" = foo &&
func_success &&
}
test "[$](echo foo)" = foo &&
func_success &&
@@
-43,11
+43,11
@@
AC_DEFUN([gl_POSIX_SHELL],
subshell_umask_sanity
'
for gl_cv_posix_shell in \
subshell_umask_sanity
'
for gl_cv_posix_shell in \
- "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
+
"$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
case $gl_cv_posix_shell in
/*)
case $gl_cv_posix_shell in
/*)
- "$gl_cv_posix_shell" -c "$gl_test_posix_shell_script" 2>/dev/null \
- && break;;
+
"$gl_cv_posix_shell" -c "$gl_test_posix_shell_script" 2>/dev/null \
+
&& break;;
esac
done])
esac
done])