mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
resolves GrammaticalFramework/gf-core/#97
This commit is contained in:
@@ -170,10 +170,13 @@ commonCommands = fmap (mapCommandExec liftSIO) $ Map.fromList [
|
|||||||
restrictedSystem $ syst ++ " <" ++ tmpi ++ " >" ++ tmpo
|
restrictedSystem $ syst ++ " <" ++ tmpi ++ " >" ++ tmpo
|
||||||
fmap fromString $ restricted $ readFile tmpo,
|
fmap fromString $ restricted $ readFile tmpo,
|
||||||
-}
|
-}
|
||||||
fmap fromString . restricted . readShellProcess syst $ toString arg,
|
fmap (fromStrings . lines) . restricted . readShellProcess syst . unlines $ toStrings arg,
|
||||||
flags = [
|
flags = [
|
||||||
("command","the system command applied to the argument")
|
("command","the system command applied to the argument")
|
||||||
],
|
],
|
||||||
|
options = [
|
||||||
|
("lines","preserve input lines, and return output as a list of lines")
|
||||||
|
],
|
||||||
examples = [
|
examples = [
|
||||||
mkEx "gt | l | ? wc -- generate trees, linearize, and count words"
|
mkEx "gt | l | ? wc -- generate trees, linearize, and count words"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user