printf does not always display warning messages on write errors

2009-09-02 Thread Stefano Lattarini
Hi everybody. I found the following bug while running some of my bash scripts on GNU/Linux with stdout redirected to /dev/full, to see if write errors where correctly detected and reported. It turned out that, on write errors, the printf builtin correctly returns a non-zero status (thus my

ulimit and ssh?

2009-09-02 Thread peter360
Can someone explain this to me? Why am I not seeing correct results from ulimit after ssh into localhost? Thanks! $ ssh localhost bash -c 'ulimit -a' unlimited but $ bash -c 'ulimit -a' core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority

Re: ulimit and ssh?

2009-09-02 Thread Bob Proulx
peter360 wrote: Can someone explain this to me? Why am I not seeing correct results from ulimit after ssh into localhost? Thanks! $ ssh localhost bash -c 'ulimit -a' unlimited You have insufficiently quoted your argument to ssh. This is causing bash not to get ulimit -a but to get ulimit

Re: ulimit and ssh?

2009-09-02 Thread peter360
Bob, Thanks for the quick reply! A local unix guru also told me the same thing. So, just to make sure I really understand this, here is how I understand ssh worked: even thought I gave the command bash -c 'ulimit -a' as 3 separate strings, ssh (either the client or the server) actually

Re: ulimit and ssh?

2009-09-02 Thread Bob Proulx
peter360 wrote: So, just to make sure I really understand this, here is how I understand ssh worked: even thought I gave the command bash -c 'ulimit -a' as 3 separate strings, Yes. ssh (either the client or the server) actually concatenate them into one, No. It isn't put into one string

Re: printf does not always display warning messages on write errors

2009-09-02 Thread Chet Ramey
Stefano Lattarini wrote: Hi everybody. I found the following bug while running some of my bash scripts on GNU/Linux with stdout redirected to /dev/full, to see if write errors where correctly detected and reported. It turned out that, on write errors, the printf builtin correctly

RE: Who handles fails to build problems for bash?

2009-09-02 Thread Tovrea, George W (US SSA)
Tried adding each of -lcurses and -lncurses with the following results: /home/users/tovrea/local/sgi6/bin/gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/sh -L/home/users/tovrea/local/sgi6/lib/gcc/mips-sgi-irix6.5/4.3.0