[U-Boot] Sandbox: auto exiting on pipe closure

Mike Frysinger vapier at gentoo.org
Fri Aug 10 02:47:31 CEST 2012


On Thursday 09 August 2012 16:39:20 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > On Monday 23 April 2012 02:41:08 Wolfgang Denk wrote:
> > > 2) Sandbox does no handle EOF on stadin; this makes it impossible to
> > > 
> > >    use it in test scripts.  For example, something like this should
> > >    
> > >    work:
> > >    	$ echo printenv | ./u-boot
> > >    
> > >    [As woraround I have to use ``echo 'printenv;reset' | ./u-boot'';
> > >    this works, but is not really intuitive nore useful.]
> > 
> > (raw) patch below handles that.  it doesn't handle this though:
> > 	./u-boot <<<help
> > 
> > but maybe i'm the only one who uses that form
> > -mike
> 
> Do you intend to submit this as a proper patch?

it was meant as an RFC.  no one was unhappy with it, so i'll clean it up and 
submit like normal.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120809/cd99b805/attachment.pgp>


More information about the U-Boot mailing list