mirror of https://github.com/garabik/grc.git
catch nonexistent command even if conffile matches
This commit is contained in:
parent
8fe23efe77
commit
e10d7d257f
4
grc
4
grc
|
@ -137,7 +137,11 @@ if cfile != "" and colour:
|
||||||
os.dup2(chie, 2)
|
os.dup2(chie, 2)
|
||||||
os.close(choe)
|
os.close(choe)
|
||||||
os.close(chie)
|
os.close(chie)
|
||||||
|
try:
|
||||||
os.execvp(args[0], args)
|
os.execvp(args[0], args)
|
||||||
|
except OSError as e:
|
||||||
|
sys.stderr.write('grc: %s: %s\n' % (args[0], e.strerror))
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
if stdoutff:
|
if stdoutff:
|
||||||
|
|
Loading…
Reference in New Issue