Shell one-liner: Difference between revisions

Content added Content deleted
(Add Nimrod)
Line 503: Line 503:


=={{header|Scala}}==
=={{header|Scala}}==
[[Category:Scala Implementations]]
{{libheader|Scala}}
{{libheader|Scala}}
<lang cmd>C:\>scala -e "println(\"Hello\")"
<lang cmd>C:\>scala -e "println(\"Hello\")"
Hello</lang><lang cmd>
Hello</lang>
<lang cmd>
PS C:\> scala -e 'println(\"Hello\")'
PS C:\> scala -e 'println(\"Hello\")'
Hello</lang>
Hello</lang>

The escaping of quotes is required by Windows. On Unix and shown in the example on [[PowerShell|Windows PowerShell]], one could just use single quotes around the code.
The escaping of quotes is required by Windows.
On Unix and shown in the example on [[PowerShell|Windows PowerShell]],
one could just use single quotes around the code.


=={{header|Scheme}}==
=={{header|Scheme}}==