1
I'm currently trying to solve a tricky/silly challenge and i've come to a dead end.
The challenge is basically to form a one-liner /bin/sh compatible command line which essentially outputs "Hello World" without directly typing White space or Tab characters in the command itself.
for example something like -
echo Hello World
would be invalid since we used white space twice in the command line.
Any ideas?
Welcome to PPCG! While this is probably a rare case which justifies a language-specific challenge (as it's trivial in many languages but particularly hard in sh), all challenges here need an objective winning criterion. If you get multiple correct answers, which one is the best? – Martin Ender – 2015-01-28T14:53:49.853
The most you can do is to use newlines between command and parameters: http://pastebin.com/DU5Gyde7 But this is not POSIX
– manatwork – 2015-01-28T14:54:26.263sh
anymore.@MartinBüttner, are you sure about the [tag:bash] tag? The question explicitly asks for “/bin/sh compatible”. – manatwork – 2015-01-28T14:56:08.090
@manatwork Whoops, good point. Changed to a new [tag:sh]. – Martin Ender – 2015-01-28T14:57:30.093