Quine: Difference between revisions
Content deleted Content added
m {{omit from|GUISS}} |
m →{{header|UNIX Shell}}: Quote "$0", because path might contain spaces or such. |
||
Line 1,432: | Line 1,432: | ||
This script reads its own source code, because <tt>$0</tt> is the path to the script. |
This script reads its own source code, because <tt>$0</tt> is the path to the script. |
||
{{works with|Bourne Shell}} |
|||
<lang bash>#!/bin/sh |
<lang bash>#!/bin/sh |
||
cat -- $0</lang> |
cat -- "$0"</lang> |
||
===Not-so-simple version=== |
===Not-so-simple version=== |
||
{{works with|Bourne Shell}} |
|||
<lang bash>{ |
<lang bash>{ |
||
string=`cat` |
string=`cat` |