You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring has following weird commands:
cd "$(dirname "${PRG}")/../" >&- || exit 1
SPRING_HOME="$(pwd -P)"
export SPRING_HOME
cd "$SAVED" >&- || exit 1
If I understand bash correctly, ">&-" means to close stdout. I think a more typical approach is to redirect stdout to /dev/null. As a result, we have problems with Bash 4.3 running on AIX. Not sure if that's bash or AIX or combination of both but doing a redirect to /dev/null instead helps.
Here's how I reproduced the problem:
-bash-4.3$ bash --version
GNU bash, version 4.3.0(1)-release (powerpc-ibm-aix7.1.0.0)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
-bash-4.3$ cat a.sh
echo "`pwd`"
cd "`pwd`" >&-
echo "`pwd`"
-bash-4.3$ bash a.sh
/cspbd/64bit-powerpc-aix7.1-gcc4.8-ora12.1-tux12.1-s-rx13/cs.platform.WD2-1.13.1.3/src/cs.mp.vtis-0.0.25/spring-cloud-cli
a.sh: line 3: pwd: write error: A file descriptor does not refer to an open file.
a.sh: line 3: echo: write error: A file descriptor does not refer to an open file.
-bash-4.3$
The text was updated successfully, but these errors were encountered:
spring-boot-project/spring-boot-cli/src/main/executablecontent/bin/spring has following weird commands:
If I understand bash correctly, ">&-" means to close stdout. I think a more typical approach is to redirect stdout to /dev/null. As a result, we have problems with Bash 4.3 running on AIX. Not sure if that's bash or AIX or combination of both but doing a redirect to /dev/null instead helps.
Here's how I reproduced the problem:
The text was updated successfully, but these errors were encountered: