From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from minnie.tuhs.org (minnie.tuhs.org [IPv6:2600:3c01:e000:146::1]) by inbox.vuxu.org (Postfix) with ESMTP id 77EA02E6A6 for ; Mon, 16 Sep 2024 13:22:16 +0200 (CEST) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id AA6C743741; Mon, 16 Sep 2024 21:22:11 +1000 (AEST) Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by minnie.tuhs.org (Postfix) with ESMTPS id 3445D43724 for ; Mon, 16 Sep 2024 21:22:06 +1000 (AEST) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-42cb1758e41so25212585e9.1 for ; Mon, 16 Sep 2024 04:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726485724; x=1727090524; darn=tuhs.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=WgkelvU4RP9RZN+tNCUWtcBJ52BLw4EeeNjP9XQk7x0=; b=VmtJGd6894oI8l4JyNynPtSThKWOMu6ltIZlqwdJbTpPXgv4dxItp75YtsV7KIiJfX VS8fMHMXF9NWSmYk+nEYlSxT7m2BNtqqyAjIDpJKW7c3MlEpAZ6UNs7LOmBLK1rqOFV2 YvNBWiF8HvbQ9aFNJYK7/A9gg+nelCr0prrlDMZOBsmVh/R5KZ+ciRA5dEwTAkx6zHss 6P1QTEI6NdVgF+rSwGAHbbUKT8aczvi7suXQ30w+p6oUYIDKpdvOyxcbUqUMPKzKm2uy g8+v1/xyfPqtxvoalR3sfBrQLUXaMYa9Aw4bPagC10QuUYxPZm8HkWxYNZnAycRuOkBU myLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726485724; x=1727090524; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WgkelvU4RP9RZN+tNCUWtcBJ52BLw4EeeNjP9XQk7x0=; b=I/OdRGjZW8OYb+Mtj1EwZ1f7B8k91R76ts80tdovzhygFHrNzfTXwhj1gTPCzcpie+ rAcfL+vbkF7J9BHbCHB0doBuPQIn4AjDdi9x6o2UYqxa5K8VqcSuy+LbpYFF6h+KMRh+ aln5dm4gfglHF72CW072i3EDkmQjeKB979HkDaOB1B09yh4ZX1TYsPrnVJWLagDNHacZ Ah3JcSOdvvNiDPJm87PBkqvBqMLxypO0Lpm7drIrRonLUARPeUuwsfkfXKh43oQISkF7 7QME6njI4Hrtz5PEBJWWHdEn0Szgi35MH9+wmBIcbDClXsSbt3pSynPuXLapetSe4DdB TJlw== X-Gm-Message-State: AOJu0YwhkTFELBE4FU+IRO05+HZWD2Q/Ol8Ou+0m6a6Y23vhxfyNEJMC SYUn6MMUqcW1vo6NE3mmx2R2mrTd+JajiYQ6/GZXgwjZjZgouPLuouwrEA== X-Google-Smtp-Source: AGHT+IGnBDaq4npuWSg7Y1RaghmbibOLLmAzcjstvOynysiKP7yKflhSzx8VaQlfccmESpCMS2DeMw== X-Received: by 2002:a05:600c:35ca:b0:425:5ec3:570b with SMTP id 5b1f17b1804b1-42d964e186amr63307175e9.35.1726485723588; Mon, 16 Sep 2024 04:22:03 -0700 (PDT) Received: from venerable (92-184-116-226.mobile.fr.orangecustomers.net. [92.184.116.226]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42da22d85f2sm74240975e9.17.2024.09.16.04.22.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2024 04:22:03 -0700 (PDT) References: <202409160310.48G3AQb5074340@freefriends.org> User-agent: mu4e 1.8.9; emacs 28.2 From: Edouard Klein To: George Michaelson Date: Mon, 16 Sep 2024 12:59:01 +0200 In-reply-to: Message-ID: <8734lz6dym.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Message-ID-Hash: NW4Q37FLVTOQG43EHPXGKFILQWPJGL4Q X-Message-ID-Hash: NW4Q37FLVTOQG43EHPXGKFILQWPJGL4Q X-MailFrom: edouardklein@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: tuhs@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: On computerese List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: George Michaelson writes: > cat is capable of endless discussion. > > cat thing | cat otherthing doesn't do what (some) people think. > cat thing | cat otherthing /dev/stdin does, but there's an ordering > point to be made. > cat thing | cat < otherthing /dev/stdin makes the ordering point. and > the number of lines seen. > I'm not sure of the point you are making with your last example, which gave me pause. I had to run it to see what it does. I correctly guessed that only one of thing or otherthing would be printed, but I was not able to guess if the | or the < would take precedence. Is there a simple reason why the < has priority over | for the stdin ? If the < precedence was your point, why did you specify /dev/stdin ? cat thing | cat < otherthing makes the point. Is there a finer point I am missing ? Sorry for being dense. I'm happy, after more that 20 years of Unixing, to see something new even with such supposedly basic commands. Thank you for your brain twister.