4 ms·
Or as was posted to https://news.ycombinator.com/item?id=29874052 https://news.ycombinator.com/item?id=29874052 by @jcalvinowens a few hours ago, we can also si
by susam 5y ago
Or as was posted to https://news.ycombinator.com/item?id=29874052 https://news.ycombinator.com/item?id=29874052 by @jcalvinowens a few hours ago, we can also simplify this to just:
#!/bin/cat
Example:
$ echo '#!/bin/cat' > foo
$ chmod +x foo
$ cat foo
#!/bin/cat
$ ./foo
#!/bin/cat
- charcircuit 5y agoor just an empty string for various languages
- capableweb 5y agoSeems like that would only work for languages where the last returned value is printed as-is when running it. Other languages wouldn't print `""` but have no output instead.
- drdeca 5y agoI think they meant that the program would be 0 bytes long, not two characters which are both quotation marks
- capableweb 5y agoAh, I see. Funny lateral thinking exercise I guess, not so interesting in terms of actually creating a Quine :)