# HG changeset patch # User HackEso # Date 1573954018 0 # Node ID 138d7dafc5b1deefe84dcacf5bef3a3b3c47fa77 # Parent cdc4c441039049c46a22f079a3a9571eb42a89b6 slbd hello-world-in-any-language//s|hw/|${HACKENV-/hackenv}/hw/|g diff -r cdc4c4410390 -r 138d7dafc5b1 bin/hello-world-in-any-language --- a/bin/hello-world-in-any-language Sun Nov 17 00:59:34 2019 +0000 +++ b/bin/hello-world-in-any-language Sun Nov 17 01:26:58 2019 +0000 @@ -1,1 +1,1 @@ -if [ -z $(tr [A-Z] [a-z] <<< "$1") ]; then echo "Hello, world!"; else if [ -f hw/$(tr [A-Z] [a-z] <<< "$1") ]; then cat hw/$(tr [A-Z] [a-z] <<< "$1"); else echo "Your language does not exist"; fi; fi +if [ -z $(tr [A-Z] [a-z] <<< "$1") ]; then echo "Hello, world!"; else if [ -f ${HACKENV-/hackenv}/hw/$(tr [A-Z] [a-z] <<< "$1") ]; then cat ${HACKENV-/hackenv}/hw/$(tr [A-Z] [a-z] <<< "$1"); else echo "Your language does not exist"; fi; fi