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

#include <skalibs/strerr.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) ;
}