Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fredrik Wieczerkowski
curry-libs
Commits
df251f02
Commit
df251f02
authored
Jan 04, 2017
by
Michael Hanus
Browse files
Problem in IOExts.evalCmd for empty inputs fixed
parent
1258fb21
Changes
1
Hide whitespace changes
Inline
Side-by-side
IOExts.curry.pakcs
View file @
df251f02
...
...
@@ -51,7 +51,7 @@ evalCmd cmd args input = do
let tmpfile = "/tmp/PAKCS_evalCMD"++show pid
(hi,ho,he) <- execCmd (unwords (map wrapArg (cmd:args)) ++
" ; (echo $? > "++tmpfile++")")
hPutStrLn hi input
unless (null input) (
hPutStrLn hi input
)
hClose hi
outs <- hGetEOF ho
errs <- hGetEOF he
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment