Exit status 0 when the file is moved out from under a script

2005-12-31 Thread Rob Ewaschuk
I'm running: GNU bash, version 2.05b.0(1)-release (i686-pc-linux-gnu) Copyright (C) 2002 Free Software Foundation, Inc. Kernel 2.4.22 on i686 When running a bash script from NFS, and a stale NFS file handle is generated (in my case from saving over the script while it's running, which is indeed

bash - confusing the user - a headsup/FYI/whatever

2005-12-31 Thread Hannu E K Nevalainen
New year greetings from Sweden! Below you find an issue that I have no intention/wish to discuss further, I just wish to bring it forth to make it get a "known issue" status. Reply-to set to bug-bash Expected result: $ echo "a b c d e f g" | \ ( while read first second ;do echo "got $first" ;done

Re: bash - confusing the user - a headsup/FYI/whatever

2005-12-31 Thread Chet Ramey
Hannu E K Nevalainen wrote: > Problem: > If I understand the "$ help read" text correctly the following variation > should work, but it doesn't and additionally displays a "totally off" error > message. > > $ echo "a b c d e f g" | \ > ( IFS=" " while read first remainder ;do echo "got $first" ;d

Re: Can't get the set-user-id bit to work

2005-12-31 Thread Bob Proulx
I see that you have resolved your problem with bad permissions on /tmp. But I wanted to follow another line of discussion. Sebastian Tennant wrote: > [...test cases of suid-scripts...] > A cron.daily script handles mandb. I elected to install it with the > set-user-id bit set, as you can see: >