Re: cat return code
On Mon, Jan 14, 2002 at 05:12:54PM -0800, Paul E Condon wrote:
> I'm attempting to use the pseudo-image-kit. I get error messages from
> bash when I run it, so I'm attempting to debug the script. The error
> message indicates a problem with comparing the return code from an
> invocation of cat (concatenate and transfer). I look at the man page and
> the info for cat hoping to find the defined return codes. The definition
> does not seem to be in either place. What are the return codes for cat?
> Where are they documented?
The only reasons I can think of why cat should fail are:
* can't read from input files
* can't write to output files
cat itself is pretty trivial - check whether it's being called in a sane
way. You may find 'sh -x scriptname' useful to get the shell to be more
verbose.
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: