2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,3 +1,5 @@
|
|||
;Task:
|
||||
Show how to specify and execute a short program in the language from a command shell, where the input to the command shell is only one line in length.
|
||||
|
||||
Avoid depending on the particular shell or operating system used as much as is reasonable; if the language has notable implementations which have different command argument syntax, or the systems those implementations run on have different styles of shells, it would be good to show multiple examples.
|
||||
<br><br>
|
||||
|
|
|
|||
1
Task/Shell-one-liner/Bc/shell-one-liner.bc
Normal file
1
Task/Shell-one-liner/Bc/shell-one-liner.bc
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ echo 'print "Hello "; var=99; ++var + 20 + 3' | bc
|
||||
1
Task/Shell-one-liner/COBOL/shell-one-liner-1.cobol
Normal file
1
Task/Shell-one-liner/COBOL/shell-one-liner-1.cobol
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'display "hello".' | cobc -xFj -frelax -
|
||||
1
Task/Shell-one-liner/COBOL/shell-one-liner-2.cobol
Normal file
1
Task/Shell-one-liner/COBOL/shell-one-liner-2.cobol
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo 'id division. program-id. hello. procedure division. display "hello".' | cobc -xFj -
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
┌────────────────────────────────────────────────┐
|
||||
│ from the MS Windows® command line (cmd.exe) │
|
||||
└────────────────────────────────────────────────┘
|
||||
╔══════════════════════════════════════════════╗
|
||||
║ ║
|
||||
║ from the MS Window command line (cmd.exe) ║
|
||||
║ ║
|
||||
╚══════════════════════════════════════════════╝
|
||||
|
||||
echo do j=10 by 20 for 4;say right('hello',j);end | regina
|
||||
|
||||
echo do j=10 by 20 for 4; say right('hello',j); end | regina
|
||||
|
|
|
|||
1
Task/Shell-one-liner/Rust/shell-one-liner.rust
Normal file
1
Task/Shell-one-liner/Rust/shell-one-liner.rust
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ echo 'fn main(){println!("Hello!")}' | rustc -;./rust_out
|
||||
1
Task/Shell-one-liner/S-lang/shell-one-liner-1.slang
Normal file
1
Task/Shell-one-liner/S-lang/shell-one-liner-1.slang
Normal file
|
|
@ -0,0 +1 @@
|
|||
slsh -e 'print("Hello, World")'
|
||||
1
Task/Shell-one-liner/S-lang/shell-one-liner-2.slang
Normal file
1
Task/Shell-one-liner/S-lang/shell-one-liner-2.slang
Normal file
|
|
@ -0,0 +1 @@
|
|||
slsh -e "print(\"Hello, World\")"
|
||||
Loading…
Add table
Add a link
Reference in a new issue