2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Add STDIN redirection support for stanza definition (#1863)

close-issue: #1671
This commit is contained in:
chenglch 2016-09-20 14:33:25 +08:00 committed by yangsong
parent 7bcf328b0f
commit 7b87c6e417

View File

@ -69,7 +69,7 @@ if ((($^O =~ /^linux/i) && ($ENV{'SHELL'} =~ /\/ksh$/)) || !defined($ENV{'TERM'}
}
else
{
if (-p STDIN) {
unless (-t STDIN) {
while (<STDIN>) { $data .= $_; }
$cmdref->{stdin}->[0] = $data;
}