Re: Keep bash output to one line

2008-09-25 Thread Paul Jarc
mikehershey32 <[EMAIL PROTECTED]> wrote: > Is there a way that i can make new output to the file overwrite the > old file content without stopping the program and restarting the script or > rotating the log file? { python -c ' import os import time while True: time.sleep(1) os.lseek(1, 0, 0)

Re: nullglob breaks unset of arrays

2008-09-25 Thread Mario TRENTINI
Hi Chet thanks for your answer, I understand then that unset "my_array[0]" works and therefore quoting the argument is the proper way for using unset. Regards Mario On Wed, Sep 24, 2008 at 11:41:56PM -0400, Chet Ramey wrote: > [EMAIL PROTECTED] wrote: > > > Bash Version: 3.2 > > Patch Level:

Keep bash output to one line

2008-09-25 Thread mikehershey32
Hi I am running btlaunchmany.py via bash script and having stdout redirected to text file. Btlaunchmany outputs a new text every few seconds saying the status of downloading torrent and this log gets really really long really fast. Is there a way that i can make new output to the file overwrite th

Re: nullglob breaks unset of arrays

2008-09-25 Thread Chris F.A. Johnson
On 2008-09-24, [EMAIL PROTECTED] wrote: ... > Description: > When nullglob option is enable (shopt -s nullglob), unset of an array > does not work. > > Repeat-By: > my_array=(1 2 3 4 5 6) > echo "Array [EMAIL PROTECTED]" > shopt -u nullglob > # remove first entry

Re: What exactly does "read -e" do? bind weirdnesses

2008-09-25 Thread Chet Ramey
Rocky Bernstein wrote: > On Tue, Sep 23, 2008 at 8:46 AM, Chet Ramey <[EMAIL PROTECTED]> wrote: >> Rocky Bernstein wrote: >>> Sorry for the delayed reply. >>> >>> As I now understand it, the situation right now seems a bit >>> inconsistent. "read -e" in a script uses emacs bindings by default even