summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-31 19:03:53 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-31 19:03:53 +0000
commita4dd540de833d5aec625a4c3c16ae37db4cd4682 (patch)
treed7e2e309a89dc3c99f4f5463cdf04c1642ead04c
parentb9cdc9dbfcf776674d1e8c82e97f0250a312cf35 (diff)
downloadexecline-a4dd540de833d5aec625a4c3c16ae37db4cd4682.tar.xz
Bugfix: ifthenelse (thanks Olivier Brunel)
-rw-r--r--src/execline/ifthenelse.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/execline/ifthenelse.c b/src/execline/ifthenelse.c
index f9fb9d7..9960222 100644
--- a/src/execline/ifthenelse.c
+++ b/src/execline/ifthenelse.c
@@ -41,7 +41,6 @@ int main (int argc, char const **argv, char const *const *envp)
strerr_dief1x(100, "unterminated else block") ;
argv[argc1] = 0 ;
- pid = fork() ;
pid = el_spawn0(argv[0], argv, envp) ;
if (!pid) strerr_diefu2sys(111, "spawn ", argv[0]) ;
if (wait_pid(pid, &wstat) == -1)