summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-12-12 21:21:22 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-12-12 21:21:22 +0000
commita7b30a349b6388b2eed6a735d3248eeba5198baa (patch)
tree42fcb518f23c1c8896da85687a359c2980ac7823
parent705440540948df99157848f71c432e3e7034457b (diff)
rc: use /fd/0 for standard-input instead of '#d/0' in non-interactive mode
-rw-r--r--rc/lib/rcmain2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/lib/rcmain b/rc/lib/rcmain
index 1716908fe..0278d7f68 100644
--- a/rc/lib/rcmain
+++ b/rc/lib/rcmain
@@ -32,7 +32,7 @@ if not if(flag i){
if(! ~ $#* 0) . $*
. -i /fd/0
}
-if not if(~ $#* 0) . '#d/0'
+if not if(~ $#* 0) . /fd/0
if not{
status=''
. $*