• R/O
  • SSH
  • HTTPS

yash: Commit


Commit MetaInfo

Revision3988 (tree)
Time2019-02-11 23:42:08
Authormagicant

Log Message

run-test: Redirect stdin to /dev/null rather than closing

For standard utilities to work as specified in POSIX, stdin should be
open even if it is unused.

Change Summary

Incremental Difference

--- yash/trunk/tests/run-test.sh (revision 3987)
+++ yash/trunk/tests/run-test.sh (revision 3988)
@@ -1,5 +1,5 @@
11 # run-test.sh: runs a set of test cases
2-# (C) 2016 magicant
2+# (C) 2016-2019 magicant
33 #
44 # This program is free software: you can redistribute it and/or modify
55 # it under the terms of the GNU General Public License as published by
@@ -53,7 +53,7 @@
5353
5454 ##### Script startup
5555
56-exec <&- 3>&- 4>&- 5>&-
56+exec </dev/null 3>&- 4>&- 5>&-
5757
5858 # ensure correctness of $PWD
5959 cd -L .
Show on old repository browser