Exec Node not giving same output as linux terminal

please read how-to-share-code-or-flow-json
https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506