SC2118
Vidar Holen edited this page Nov 3, 2022
·
1 revision
Ksh does not support |&. Use 2>&1 |
Problematic code:
#!/usr/bin/ksh
make |& tee ~/logCorrect code:
#!/usr/bin/ksh
make 2>&1 | tee ~/logRationale:
You are using the Bash specific shorthand |&, but your script is running with Ksh. Rewrite it to its full, POSIX-compatible form as shown in the example.
Exceptions:
None
Related resources:
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!