Mercurial > repo
changeset 6863:ecb520c9d0c7
<Elronnd> ` echo \'if [ -z $1 ]; then echo "Hello, world!"; else if [ -f hw/$1 ]; then cat hw/$1; else echo "Your language does not exist"; fi; fi\' > bin/hello-world-in-any-language
author | HackBot |
---|---|
date | Mon, 15 Feb 2016 02:02:16 +0000 |
parents | a8fb31e64c48 |
children | 1ea4c3ad6542 |
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 Mon Feb 15 02:00:21 2016 +0000 +++ b/bin/hello-world-in-any-language Mon Feb 15 02:02:16 2016 +0000 @@ -1,1 +1,1 @@ -if [ -z $1 ]; then echo "Hello, world!"; else cat hw/$1; fi +if [ -z $1 ]; then echo "Hello, world!"; else if [ -f hw/$1 ]; then cat hw/$1; else echo "Your language does not exist"; fi; fi