From mlelstv at serpens.de Mon Mar 23 20:19:30 2009 From: mlelstv at serpens.de (Michael van Elst) Date: Mon, 23 Mar 2009 19:19:30 +0100 Subject: time doesn't like 64bit time_t Message-ID: <20090323181930.GA2469@serpens.de> Hello, on NetBSD-current time_t was changed to a 64bit type even for architectures that use 32bit long. This breaks the tcsh builtin command 'time', here is a patch: --- sh.time.c.orig 2009-03-23 19:08:52.000000000 +0100 +++ sh.time.c 2009-03-23 19:09:22.000000000 +0100 @@ -687,7 +687,7 @@ timeval_t td; tvsub(&td, t1, t0); - xprintf("%ld.%03ld", td.tv_sec, td.tv_usec / 1000L); + xprintf("%ld.%03ld", (long)td.tv_sec, (long)td.tv_usec / 1000L); } static void Greetings, -- Michael van Elst Internet: mlelstv at serpens.de "A potential Snark may lurk in every tree." From trineo at gmail.com Mon Mar 30 23:36:57 2009 From: trineo at gmail.com (Neon) Date: Mon, 30 Mar 2009 16:36:57 -0400 Subject: Subscript out of range error on existing working script In-Reply-To: References: Message-ID: I have an existing script that worked fine under tcsh 6.12.00 which no longer works in version 6.14.00 It errors out with "Subscript is out of range." message in version 6.12.00 Here is a test script to show the problem. -- begin test.tcsh -- #!/bin/tcsh set second_til_last = "${argv[2-]}" echo "2nd to last arguments = $second_til_last" -- end of test.tcsh --- This originally is a csh script which would set the second_til_last variable to a blank string (i.e. "") Regards, Neon From christos at zoulas.com Tue Mar 31 15:50:20 2009 From: christos at zoulas.com (Christos Zoulas) Date: Tue, 31 Mar 2009 08:50:20 -0400 Subject: Subscript out of range error on existing working script In-Reply-To: from Neon (Mar 30, 4:36pm) Message-ID: <20090331125020.2FAE156550@rebar.astron.com> On Mar 30, 4:36pm, trineo at gmail.com (Neon) wrote: -- Subject: Subscript out of range error on existing working script | I have an existing script that worked fine under tcsh 6.12.00 which no | longer works in version 6.14.00 | | It errors out with "Subscript is out of range." message in version 6.12.00 | | Here is a test script to show the problem. | | -- begin test.tcsh -- | #!/bin/tcsh | set second_til_last = "${argv[2-]}" | echo "2nd to last arguments = $second_til_last" | -- end of test.tcsh --- | | This originally is a csh script which would set the second_til_last | variable to a blank string (i.e. "") Can you try 6.16? christos