git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Unset TZ in t5000

From
MAMark Allen <mrallen1@yahoo.com>
Date
Jun 13, 2005, 17:27 UTC
Message-ID
<20050613172757.41222.qmail@web41215.mail.yahoo.com>
In-Reply-To
<42ADAC4D.7050408@lsrfire.ath.cx>
--- Rene Scharfe <rene.scharfe@lsrfire.ath.cx> wrote:
Show 15 quoted lines
> What kind of AWK is that?  The One True AWK certainly has a length
> function for strings and POSIX mandates it, too, so it's not a GNUism.
> 
> The expression
> 
>    length($5)<7 ? $5":00" : $5
> 
> (where $5 is a time value) is there to cope with tars that format the
> time like hh:mm instead of the expected hh:mm:ss.  If you have to remove
> the call to "length", please replace the thing with something
> equivalent, like
> 
>    match($5, /:.*:/) ? $5 : $5":00"
> 
> or similar, instead of simply dropping that test.
Hi Rene,

I'll test your suggestion later tonight (US time) when I get home from work. Sorry I don't know much about awk. (I usually break out perl for any job I used to give awk) When I ran the t5000 script in --verbose mode, all I could see was awk complaining about the length directive.

It *is* possible that there's some kind of quoting/character escape problem which Linux tolerates but is causing the syntax error on my home system. (It's Mac OS 10.4.1/Darwin)

Thanks,
--Mark
Previous: Rene ScharfeNext: Mark Allen
Message 3 of 6 in “Unset TZ in t5000”
  1. Unset TZ in t5000Mark Allen, Jun 13, 2005
  2. Rene ScharfeJun 13, 2005
  3. Mark AllenJun 13, 2005
  4. Mark AllenJun 14, 2005
  5. Rene ScharfeJun 14, 2005
  6. Mark AllenJun 14, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.