From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-it1-f178.google.com ([209.85.166.178]) by ewsd; Tue Nov 13 15:32:46 EST 2018 Received: by mail-it1-f178.google.com with SMTP id t189-v6so14378435itf.1 for <9front@9front.org>; Tue, 13 Nov 2018 12:32:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=VwLevpj2aHqLp0ehkZg/TRFga17vqa9PWw0voT0Xfe4=; b=a9zzRku6FpH0NAFHLoAyDJdKFg403wYOAmDsf02oyuzgXlcBkcISfgEqcGLDhdQqUg jPQA49UW4GBvjqhUgL9az3IE54jGT8w0edF4Sg7TfOw5nHDAzT0gmNlyqN7yqyiG8uZG dqIYltzbiqoGLKdPl4eb7f0asNeapx79Vkx6piXTEnfaTQykfxsMIZnSziu9zdS3zsP6 YJkC9jyzFq/Leo2hPHF7dKT9CDp9ROb7BxiJB2afB05sPXeUOcb/MBLMDCPep4goArKx 779LGAKR9eL3hdM2aWY5FIhG+bSZY7s6jAkA4+j1qCHFBnZw4LdAKzewFW7M+ExeyWql Kfww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=VwLevpj2aHqLp0ehkZg/TRFga17vqa9PWw0voT0Xfe4=; b=c9GwHWXboI7vXZrmYiHf3XdfWqcEgwjQy9gkjLnbw7ZDYlZK+afKbm0QgiFDJu6Qsr t5Nnk0MgtfgsBPSMEjHNyQCZ89WQh9QclmwQ/2eRlA5AP9NW3aN2iRHPmMx6VVF553b8 v4b+5gT4VWlMQH1gwJh9r+XXVu4MR15JiklpkJReoUygav+Wme6EA4t2I4OKiRStD1C/ o/lGKt+NpUF4HpBWtmKbfBkxi6LtJ/Nbg2fvjEDZ/8c8LRQY9xXqrCtLOLe3oMIaJFlk lWf4kMCPE6t2UX/+vzxjt8QmMb/7dbRSNOELUskNWaMqvf80JkyNOtK2M4oAQVc596r+ O/Yw== X-Gm-Message-State: AGRZ1gJ+5ZhA+y+Nb+j9I0Eni+Rxa1hHHlh6PlUWS+b6XqxONd0oJveN z4FOWftWA0tXFio25HFjDNIuHNdEXsxnzVD4MEzy5LiH X-Google-Smtp-Source: AJdET5c5yWQnoZLWPuQ+ArUrw7jLjyT6FXyBT1YDcn0+TqIMwhbmej6MymcwfDqWwqy482H72UN/fP3ho+Obc2tNTlk= X-Received: by 2002:a24:a10:: with SMTP id 16-v6mr4040935itw.145.1542141159188; Tue, 13 Nov 2018 12:32:39 -0800 (PST) MIME-Version: 1.0 References: <20181113200401.GA18169@master> <20181113212806.523d19f7@gmx.de> In-Reply-To: <20181113212806.523d19f7@gmx.de> From: Dave MacFarlane Date: Tue, 13 Nov 2018 15:32:12 -0500 Message-ID: Subject: Re: [9front] sed bug? To: 9front mailing list <9front@9front.org> Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: mobile agile AJAX self-signing browser-oriented locator "1/test$/d" doesn't match the pattern "[address [, address] ] function [argument ...]". There's a comma that separates the two addresses in the documentation. On Tue, Nov 13, 2018 at 3:28 PM Eckard Brauer wrote: > > At least it look inconsistent: > > % {echo test; echo test1; echo test2;echo test3} | sed '1,/^test$/d' > % {echo test; echo test1; echo test2;echo test3} | sed '1,/^test1$/d' > test2 > test3 > % {echo test; echo test1; echo test2;echo test3} | sed '1,/^test2$/d' > test3 > > seems search starts just after addressed line (1 in this case): in fist > case nothing is found, so search goes until end, then mothing remains > for output. > > as the man page states: > > [address [, address] ] function [argument ...] > > as valid, "1/test$/d' should work, but it seems not to be the case: > > % {echo test; echo test1; echo test2;echo test3} | sed '1/^test$/d' > sed: Unrecognized command: 1/^test$/d > > BTW, GNU sed (Linux) seems to behave similar. > > Am Tue, 13 Nov 2018 13:04:01 -0700 > schrieb Joe M : > > > Hello, > > > > umbraticus@prosimetrum.com wrote: > > [...] > > [...] > > > > yes, my bad. I pasted the wrong command. It should be a 1 instead of > > 0. > > > > [...] > > [...] > > [...] > > > > I stumbled upon the same workaround too. On a similar note, this > > command works fine also: > > > > {echo test; echo test1; echo test2} | sed '1,1d' > > > > Thanks again > > > > -- > :) -- - Dave