Welcome to the CHICKEN Scheme pasting service

fd juggling added by evhan on Thu Aug 17 03:56:53 2017

(use posix)
(define 1* (duplicate-fileno 1))                        ; save original stdout
(system "echo 1")
(duplicate-fileno (file-open "/dev/null" open/write) 1) ; redirect stdout to /dev/null
(system "echo 2")
(duplicate-fileno 1* 1)                                 ; restore original stdout
(system "echo 3")

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Type in the text below:
                _              
 _   _ ___ _ __| |___  ___   _ 
| | | / __| '__| __\ \/ / | | |
| |_| \__ \ |  | |_ >  <| |_| |
 \__, |___/_|   \__/_/\_\\__,_|
 |___/                         
Visually impaired? Let me spell it for you (wav file) download WAV