File: run-handles.hs

package info (click to toggle)
haskell-shelly 1.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 428 kB
  • sloc: haskell: 2,813; sh: 52; makefile: 4
file content (8 lines) | stat: -rw-r--r-- 363 bytes parent folder | download
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" ["test/examples/test.sh"] handles doNothing
  where handles = [InHandle Inherit, OutHandle Inherit, ErrorHandle Inherit]
        doNothing _ _ _ = return ""