gregwebs / Shelly.hs

Haskell shell scripting
BSD 3-Clause "New" or "Revised" License
416 stars 88 forks source link

Cannot run program that expects input like ghci and fzf #195

Closed mingyuguo closed 2 years ago

mingyuguo commented 4 years ago

If I do cmd "ghci abc.hs", what I see is that ghci launched and abc.hs successfully loaded, but then ghci immediately exists (I am assuming that's because it detects that "cmd" no longer sends anything to stdin.

Similarly, cmd "fzf" will not show anything. cmd "xterm -e fzf" will work though.

andreasabel commented 2 years ago

Maybe you find a suitable function in module System.Process: https://hackage.haskell.org/package/process-1.6.13.2/docs/System-Process.html