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.
Repeat-By:
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.
Chet