Skip to content

Commit b2402a2

Browse files
committed
fixing call to sh in basics unix
1 parent a12e7a6 commit b2402a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subprocess/basics_unix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
# LINUX examples
44

5-
subprocess.run(["sh", "ls"])
5+
subprocess.run(["sh", "-c", "ls"])
66

77
subprocess.run(["ls"], shell=True)

0 commit comments

Comments
 (0)