pwd nim shell script example use stdout

This commit is contained in:
Oskar Thoren 2021-02-06 13:47:02 +08:00
parent c0d448a932
commit 6dfbb217eb
No known key found for this signature in database
GPG Key ID: BDB55C8C0EF29911
1 changed files with 6 additions and 0 deletions

6
pwd.nim Normal file
View File

@ -0,0 +1,6 @@
# pwd example
import osproc
let (output, errC) = osproc.execCmdEx("pwd")
echo output