summary refs log tree commit diff stats
path: root/lib/pure/osproc.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-18 19:08:07 +0100
committerAraq <rumpf_a@web.de>2011-11-18 19:08:07 +0100
commitc9b67f724d039437ea72f666018d2a80266b8a2b (patch)
treefa7c340cbba7794c0da1403c618c500abe973813 /lib/pure/osproc.nim
parent12bac28d23ab21879a0f40fc7b2b2c875be90f82 (diff)
downloadNim-c9b67f724d039437ea72f666018d2a80266b8a2b.tar.gz
new osproc implementation may work with mac os x
Diffstat (limited to 'lib/pure/osproc.nim')
-rwxr-xr-xlib/pure/osproc.nim5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim
index 03880e72e..b1b22f0b8 100755
--- a/lib/pure/osproc.nim
+++ b/lib/pure/osproc.nim
@@ -547,10 +547,6 @@ elif not defined(useNimRtl):
         var a = toCStringArray(["sh", "-c"], [x])
         chck posix_spawn(pid, "/bin/sh", fops, attr, a, e)
 
-      if {poEchoCmd, poUseShell} * options == {poEchoCmd}:
-        # shell echos already, so ...
-        echo(command, " ", join(args, " "))
-
       chck posix_spawn_file_actions_destroy(fops)
       chck posix_spawnattr_destroy(attr)
 
@@ -593,7 +589,6 @@ elif not defined(useNimRtl):
         quit("execve call failed: " & $strerror(errno))
     # Parent process. Copy process information.
     if poEchoCmd in options:
-      # shell with no redirects echos already, so ...
       echo(command, " ", join(args, " "))
     result.id = pid