From nobody Mon Feb 28 13:47:21 2022 X-Original-To: standards@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 0EC8219D3AFE for ; Mon, 28 Feb 2022 13:47:23 +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 4K6hWt4BC9z4b1h for ; Mon, 28 Feb 2022 13:47:22 +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 6CE571C8BA for ; Mon, 28 Feb 2022 13:47:22 +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 21SDlMqB095993 for ; Mon, 28 Feb 2022 13:47:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21SDlMCY095992 for standards@FreeBSD.org; Mon, 28 Feb 2022 13:47:22 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: standards@FreeBSD.org Subject: [Bug 46441] sh(1): Does not support PS1, PS2, PS4 parameter expansion Date: Mon, 28 Feb 2022 13:47:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-patch, needs-qa, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jilles@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? mfc-stable13? mfc-stable12? 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: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646056042; 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=MBLu5WomzfDeB1TGO/ildGg+MwCjVe2dJM+hwIm2Qqw=; b=GInj6xHPQJZkam+DnoJvKSSwy2mgkV3yLsnTMNGUECeAWAUbLQBhFTPMaSJynou+TAuDd7 sot8JqcFH7ZPeq9flgRrZleENAEuYYl31blJSunOBoiw3Y3mKyUyAnzS3gnN4gbJky7XIZ s3zdQVeE5YCwBSkdCWNdA8PfSi895TE4WVbcVYjw+f5K69xX8G4CZSOF5CYGW0DNmvm0Nu 2Ts7hPEQx2twbxYC7y5Ad8p2bpeserbYckvvCSKN9IhGTpQJJA8T23y+UTR0a5hYLzFGqO igmiIcQxP4Gnzffr75npxNjSh9qS8YT38wc+8bxd5CoFPV++38z4ykw7bAc85w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646056042; a=rsa-sha256; cv=none; b=JryGTU54DAdID78C21FiJ0PMYdywV+tOyo0Q4x7MiFi7tUN+JTvxzB+uxIkqrkEevp1JYu aa9qfIKVl79yickE9KinG/CfWlnUFkVHTU6IxlSCEkP/6qlBREWK3KBkKB3fixUBLWPqOt N3g94LIJkVmtwIv86y8sP2Bodi/8GElSk9lmTOKzH3GpLZIAcV2RgXJ5adiBng+n6T8fA7 gvixF8sKj1Rv6CnjORlRYybMHi9IgiRBIC5l8AWJe9jj04rC65dra/Oqkc+4dvf9M+gMGz J6ulZdt/OL/vC5I/SG8SHA8UtZiN96LykcZI1FcKUjPIMGKnlSLUydSDMPAVEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D46441 --- Comment #12 from Jilles Tjoelker --- For PS4, I implemented this in 2011. The problem with unbounded recursion f= rom command substitutions is avoided by not allowing command substitutions; this error (like other parse and expansion errors in PS4) is handled by writing = an error message and continuing with the unexpanded value. For PS1 and PS2, there are two additional problems: * how does $... expansion interact with the existing \u, \w, \$, etc. * because PS2 is needed during the middle of a parse, more work may be need= ed to prevent the two parse operations from interfering with each other --=20 You are receiving this mail because: You are on the CC list for the bug.=