bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH][RFC] New 'true' program


From: Dmitry V. Levin
Subject: Re: [PATCH][RFC] New 'true' program
Date: Sat, 20 Nov 2004 18:38:05 +0300

On Sat, Nov 20, 2004 at 01:02:37PM +0000, Philip Rowlands wrote:
> On Fri, 19 Nov 2004, Paul Eggert wrote:
> 
> >If small size is all you want, I can do a lot better than that:
> >
> >$ ls -l true
> >-rwxr-xr-x  1  eggert  eggert  10  2004-11-19 22:18  true
> >$ ./true; echo $?
> >0
> 
> Can't beat this for size:
> 
> $ ls -l true
> -rwxr-xr-x  1 prowlands users 0 Nov 20 12:59 true
> $ ./true; echo $?
> 0
> 
> (The implementation is left to the reader.  :-)

Yes :) but execve(2) returns ENOEXEC:

$ env -i strace ./true
execve("./true", ["./true"], [/* 0 vars */]) = 0
strace: exec: Exec format error


-- 
ldv

Attachment: pgpnmKLB9XeTQ.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]