[Top][All Lists]

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

Re: Shell redirection success/failure isn't checked

From: Chet Ramey
Subject: Re: Shell redirection success/failure isn't checked
Date: Sat, 28 Aug 2004 10:52:31 -0400
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7.2) Gecko/20040803

Jeff Connelly wrote:

On a related note:
bash-3.00$ ulimit -f 0
bash-3.00$ echo foo>bar
File size limit exceeded
(logs out)

I'm not sure if this is a bug. Does it occur because bash tries to open the cwd?
Not logging the user out would be the preferable behavior.

Exceeding the file size limit causes SIGXFSZ to be delivered, which,
if not caught, terminates the process.

        bash-3.00$ dd if=/dev/zero of=junk
        dd: writing to `junk': No space left on device
        276353+0 records in
        276352+0 records out
        bash-3.00$ echo foo>bar
        bash-3.00$ cat bar

Did you happen to check the return value from `echo'?  It will fail,
though it does not report write errors to stderr.


reply via email to

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