13 lines
362 B
Plaintext
13 lines
362 B
Plaintext
################################################
|
|
# Create symlinks for standard streams in /dev #
|
|
################################################
|
|
|
|
if { ln -sf /proc/self/fd /dev/fd }
|
|
forx STREAM { "0 stdin" "1 stdout" "2 stderr" }
|
|
importas -Sus STREAM
|
|
backtick ARGUMENTS {
|
|
printf "/proc/self/fd/%i /dev/%s" $STREAM
|
|
}
|
|
importas -Ssu ARGUMENTS
|
|
ln -sf $ARGUMENTS
|