From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7359f0490602071607i3952ccdej9294dc1992ed6708@mail.gmail.com> Date: Tue, 7 Feb 2006 16:07:01 -0800 From: Rob Pike To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] sam: ?changes not in sequence In-Reply-To: <43E934CD.8090002@orthanc.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43E934CD.8090002@orthanc.ca> Topicbox-Message-UUID: f7136c96-ead0-11e9-9d60-3106f5b1d025 delete the space after the x. it's a feature, not a bug, that x without a delimeter means 'break into lines'. thus x /pat/ and x/pat/ mean very different things. -rob On 2/7/06, Lyndon Nerenberg wrote: > Given an input stream containing: > > Creating XML-RPC client... > 0.0001 > Creating XML-RPC client... > 0.0001 > Creating XML-RPC client... > 0.0001 > Creating XML-RPC client... > 0.0001 > Creating XML-RPC client... > 0.0001 > > Should not the sam command: > > , x /^.*Creating.+\n/ d > > delete lines 1,3,5,7 and 9? Or have I lost my mind (again). Instead of > deleting the lines, sam spits out the "?changes not in sequence" error. > > n.b. This is Plan 9 from User Space sam (on FreeBSD 6.almost1). > > --lyndon >