pkgsrc-WIP-cvs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: wip/pipestatus
Module name: wip
Committed by: cheusov
Date: Thu Jan 24 22:15:12 UTC 2008
Added Files:
wip/pipestatus: DESCR Makefile PLIST distinfo
Log Message:
pipestatus - source file for POSIX shell that allows
to obtain an exit status of every program in a pipe.
MOTIVATION
When we program in shell we often run pipes like this
prog1 args1 | prog2 args2 | ... | progN argsN
POSIX says that exit status of pipe is the exit status of LAST program
in it, i.e. progN in our example. That is, exit status of all other
programs in pipe is silently ignored. But in many situations exit
status of all programs in pipe should be checked to make program
robust. Some shells like BASH and ZSH have special extensions for
doing this but POSIX shell unfortunately doesn't provide an EASY way
for doing this.
In order to solve the problem, described above pipestatus was written.
To generate a diff of this commit:
cvs -z3 rdiff -u -r0 -r1.1 wip/pipestatus/DESCR wip/pipestatus/Makefile \
wip/pipestatus/PLIST wip/pipestatus/distinfo
To view a diff of this commit:
http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/pipestatus/DESCR?r1=0&r2=1.1
http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/pipestatus/Makefile?r1=0&r2=1.1
http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/pipestatus/PLIST?r1=0&r2=1.1
http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/pipestatus/distinfo?r1=0&r2=1.1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pkgsrc-wip-cvs mailing list
pkgsrc-wip-cvs%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-cvs
Home |
Main Index |
Thread Index |
Old Index