File: run-handles.hs

package info (click to toggle)
haskell-shelly 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 408 kB
  • sloc: haskell: 2,660; sh: 51; makefile: 4
file content (8 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
{-# Language OverloadedStrings, ExtendedDefaultRules #-}
import Shelly
-- This test runs, but causes this error to show up:
-- Exception: cannot access an inherited pipe
main = shelly $
  runHandles "bash" ["examples/test.sh"] handles doNothing
  where handles = [InHandle Inherit, OutHandle Inherit, ErrorHandle Inherit]
        doNothing _ _ _ = return ""