From 6dfbb217eb1f2378b3d63fe83694228764f2d27e Mon Sep 17 00:00:00 2001 From: Oskar Thoren Date: Sat, 6 Feb 2021 13:47:02 +0800 Subject: [PATCH] pwd nim shell script example use stdout --- pwd.nim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 pwd.nim diff --git a/pwd.nim b/pwd.nim new file mode 100644 index 0000000..b6a8426 --- /dev/null +++ b/pwd.nim @@ -0,0 +1,6 @@ +# pwd example +import osproc + +let (output, errC) = osproc.execCmdEx("pwd") + +echo output