From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 29354 invoked from network); 15 Nov 2022 11:51:30 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 15 Nov 2022 11:51:30 -0000 Received: from wopr.sciops.net ([216.126.196.60]) by 9front; Tue Nov 15 06:49:51 -0500 2022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sciops.net; s=20210706; t=1668512856; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=VpP8a/pyHhsUuA462zTUFpUYWgWqN2qRpfeulpM5ZV4=; b=jMgRLgHFme7mkeqL4HrYvVtKzcDnXcXwcQNPVdHVbeKGzQidAc98o/VCXpmvijeDllDuYB WFctP+F3HlopOBKTLKeB8syeVlZfNSZTUBN2sQzvzY93vI9y8l3BCEgvk1UrAojtTymm4l Fyjg/J50D6nrKKtVlY8D6v6pHoqCiw4= Received: by wopr.sciops.net (OpenSMTPD) with ESMTPSA id 330c8651 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for <9front@9front.org>; Tue, 15 Nov 2022 03:47:36 -0800 (PST) Message-ID: Date: Tue, 15 Nov 2022 12:49:42 +0100 From: qwx@sciops.net To: 9front@9front.org In-Reply-To: <4F3FECF74D0D8AB5A41EA721BCAC9295@wopr.sciops.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: hosting map/reduce database Subject: Re: [9front] this history(1) is scratched Reply-To: 9front@9front.org Precedence: bulk On Mon Nov 14 00:20:45 +0100 2022, qwx@sciops.net wrote: [...] > diff 7fcf96b44dc4765605b827ba49d389b5711d7e72 uncommitted > --- a//rc/bin/history > +++ b//rc/bin/history > @@ -6,7 +6,7 @@ > > fn prfile { > echo -n `{date $flagu -f 'MMM DD hh:mm:ss ZZZ YYYY' `{walk -e m $1}} > - walk -e psM $1 | awk '{printf " %s %lld [%s]\n", $1,$2,$3,$4}' > + walk -e psM $1 | awk '{$NF="["$NF"]"; print " "$0}' > } > > fn diffflags { > @@ -31,12 +31,12 @@ > echo history: warning: $file does not exist >[1=2] > > old=() > - ls -qr /n/$dump/*/*/$file >[2] /dev/null | > + ls -Qqr /n/$dump/*/*/$file >[2] /dev/null | > sed 's/\(([^ ]*) *([^ ]*) *([^ ]*)\)/\1\2\3/p' | > awk '"/n/'$dump/$since'" <= $2 {next} > $1 != qid { > qid=$1 > - gsub($1, "") > + gsub($1"[ \t]+", "") > print}' | > while(new=`$nl{read}){ > prfile $new Unless there are any objections, I'll push this later today. Thanks all! Cheers, qwx