summaryrefslogtreecommitdiff
path: root/src/execline/foreground.c
blob: 8164dcb403bfae5be85112c54900311d1b875a7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <skalibs/strerr2.h>
#include <execline/execline.h>

int main (int argc, char const **argv, char const *const *envp)
{
  int argc1 ;
  PROG = "foreground" ;
  argc1 = el_semicolon(++argv) ;
  if (argc1 >= --argc) strerr_dief1x(100, "unterminated block") ;
  argv[argc1] = 0 ;
  el_execsequence(argv, argv+argc1+1, envp) ;
}