Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b8cb848

Browse files
committed
env: Fix inconsistent return values
1 parent 1aea663 commit b8cb848

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

userland/utilities/env.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def python_userland_env(opts, args):
8181
if not prog_args:
8282
for name, value in env.items():
8383
print(f"{name}={value}", end="\0" if opts.null else "\n")
84-
return
84+
return 0
8585

8686
if opts.chdir:
8787
try:
@@ -97,3 +97,5 @@ def python_userland_env(opts, args):
9797
except OSError as e:
9898
print(e, file=sys.stderr)
9999
return 126 if isinstance(e, FileNotFoundError) else 127
100+
101+
return 0

0 commit comments

Comments
 (0)