From nobody Sat Jan 15 16:22:07 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D4ADB1951B5F for ; Sat, 15 Jan 2022 16:22:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jbk2l44mWz4ThF for ; Sat, 15 Jan 2022 16:22:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5414721B5 for ; Sat, 15 Jan 2022 16:22:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20FGM7UN056060 for ; Sat, 15 Jan 2022 16:22:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20FGM7QK056059 for bugs@FreeBSD.org; Sat, 15 Jan 2022 16:22:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261200] Unable to pipe the output of jobs in sh Date: Sat, 15 Jan 2022 16:22:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ron@digitalcombine.ca X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642263727; 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:references:references; bh=cSHAFie2VRF7STYosZGwV8ai6voE9BPiFQt1TybETj8=; b=D/0SMTa2igLlqwtkwkR/I2FOtGSHaOtC4nUXMnlCh7Yybb5ZWx2x5Kyw9pffpsjPHecvoz vF9WcJHK3ix/yAg0o3kuhT4HWhO+4XgBE7n8CR9GtP2zGGDnH+eQhdUqkF6QkGs5KiJs80 4hbmtyBxY6qCV1cOq9DPlm/gZh4TPP+fJobCFpURTecEQPha9SH6cvkI7GGfCsbNsVqZFf 0YLLF5uaT5EIbUqzx0KP4AwyR9PM/vjy8WvRBugwZ1AwYXISh+hzhhSSVIh8kLXidrKPUc Ugz4dIZjjHyTXkdj96OR5lt+19JclJX1EPRLuABqQVUpJrAQ0EGBo2iF7EDVCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642263727; a=rsa-sha256; cv=none; b=OwKURpCuQn+CQ/Ir9gWgc2dzIFCCywXs+HDy11ywriFM1vFbHWWrItjZ5NkLhIA2GSO3XQ RMbRKhzkpIvJhUyrY4A5VKEcgcwb/PwXLDOH6dHF8suRohhFN3P+4+wWG/bC7UW9KYj416 VEgLK2d8uC2DQ8kSeBfBIY8HyYPIHAdMdDi08DrbWD/smR128ooc1gwagGxLQCbkIixiBR L05hx9KKkVOwgQ1KNU/1LuO8y/RLBmFF+WiqmRE2lQVrgKQ0aJdD8eo6/Te1Olw7fIDGJw s/8qKa4watP93Qfh1MxtiLmNet6FCu89K2WITWipZ5iuNseHEM4SLlymlEqNyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261200 --- Comment #2 from Ron Wills --- (In reply to Graham Perrin from comment #1) It's hard to tell if this is a feature or a bug. It's completely undocument= ed from what I can tell. As I do more testing, I can pipe the output of other builtin commands like = echo or pwd but not the command jobs. The shell /bin/sh isn't the only shell that this doesn't work for. $ bash jobs-test1.sh ... *** Jobs *** [1] Running sleep 10 & [2]- Running sleep 10 & [3]+ Running sleep 10 & *** Job Count *** 3 *** Jobs Piped *** [1] Running sleep 10 & [2]- Running sleep 10 & [3]+ Running sleep 10 & ... Works as expected. $ sh jobs-test1.sh $ tcsh jobs-test1.sh $ zsh jobs-test1.sh ... *** Jobs *** [1] Running [2] - Running [3] + Running *** Job Count *** 0 *** Jobs Piped *** ... None of these pipe the output of builtin command jobs. It just seems to be an odd feature to have this one command, to my knowledg= e, not be able to pipe its output. I'm updating the testcase script to make the output clearer. --=20 You are receiving this mail because: You are the assignee for the bug.=