"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: add gitwrapper
To:
gameoftrees@openbsd.org
Date:
Tue, 28 Mar 2023 11:54:02 +0200

Download raw body.

Thread
  • Christian Weisgerber:

    add gitwrapper

  • Omar Polo:
    
    > > +		} else {
    > > +			if (execl(gitcommand, gitcommand, repo_path,
    > > +			    (char *)NULL) == -1) {
    > > +				error = got_error_from_errno("execlp");
    > > +				goto done;
    > > +			 }
    > > +		}
    > > +		_exit(127);
    > 
    > Just wondering, was 127 picked for some specific reason?
    
    It's what sh(1) traditionally returns when it can't find a command.
    
    $ fsdfjfksdsfjdkjsfdjksfd
    ksh: fsdfjfksdsfjdkjsfdjksfd: not found
    $ echo $?
    127
    
    -- 
    Christian "naddy" Weisgerber                          naddy@mips.inka.de
    
    
  • Christian Weisgerber:

    add gitwrapper