Created
November 12, 2017 16:04
-
-
Save DavidEGrayson/5dc9a88ab5df0ca34d34c01d730480f5 to your computer and use it in GitHub Desktop.
Can't reproduce https://stackoverflow.com/questions/47248920/msys2-bash-falls-when-substitution-with-pipe-inside-the-loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat test.sh | |
| #!/bin/sh | |
| for a in 0; do | |
| echo b=$(echo "c-d" | tr - _) | |
| done | |
| $ . test.sh | |
| b=c_d | |
| $ sh test.sh | |
| b=c_d | |
| $ bash test.sh | |
| b=c_d | |
| $ ./test.sh | |
| b=c_d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment