Mercurial > repo
changeset 12131:138d7dafc5b1 draft
<fizzie> slbd hello-world-in-any-language//s|hw/|${HACKENV-/hackenv}/hw/|g
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sun, 17 Nov 2019 01:26:58 +0000 |
parents | cdc4c4410390 |
children | d98a91d3dac9 |
files | bin/hello-world-in-any-language |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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