This script triggers an interesting result with bash versus sh.
(echo '\n' && echo "echo '\n'" > foo.sh && sh foo.sh)|wc -l |
Running it with /bin/bash.
jason@Yog-Sothoth » Documents » $ (echo '\n' && echo "echo '\n'" > foo.sh && sh foo.sh)|wc -l 3
Running it with /bin/sh.
$ (echo '\n' && echo "echo '\n'" > foo.sh && sh foo.sh)|wc -l 4
This is a very strange bug, but just small differences between the bash and sh shells. Something to be aware of I guess. This should really not affect the Linux OS as a whole, scripts are very well written on Linux and there should be nothing to worry about.