From nobody Sun May 29 10:03:58 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 7644C1B3F466 for ; Sun, 29 May 2022 10:03:58 +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 4L9vJZ1yrCz54hQ for ; Sun, 29 May 2022 10:03:58 +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 2287221100 for ; Sun, 29 May 2022 10:03:58 +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 24TA3whE049307 for ; Sun, 29 May 2022 10:03:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24TA3wJ4049306 for bugs@FreeBSD.org; Sun, 29 May 2022 10:03:58 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 46441] sh(1): Does not support PS1, PS2, PS4 parameter expansion Date: Sun, 29 May 2022 10:03:58 +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: CURRENT X-Bugzilla-Keywords: feature, needs-patch, needs-qa, standards X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pstef@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: 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=1653818638; 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=pGiz/zxQc3pMCmgcebcKg/EZsRHHPWvqsYisr2VGABQ=; b=YlDIC4KAtapXIH0SLbVQvC7IDv5Nks/y6LqsCqKMfJ2wGqEuk7jXp9kh7UrzJmltREYHk9 xsBSog7TYWeES/bQXsf9uvIajgJLyOSGdTnXj0fBqAsPCP1UakRtcCucuHN37f7DzsIgTX tL2JxPwQwX6x9DvWTMIOzAmMvLDIxq1dQe66LGzzIDxnMkqQUk9D+JzZNvkIo0r/7/sShW C9Wt773g3haa8hM89g6E1vJ2rq18r8QcInFJo+e+xj7fpYByDFW2en72bdEeOewYI1YCm7 D1Oc3e73kTPylanhexgliqo5aIa6ia8NSw+UymyYaC0qamJ8cOa8KWDFa9sXBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653818638; a=rsa-sha256; cv=none; b=xQ/0lAlr/2iELA0CJlOEZ6y24sHDq/GQ/XO+/y09K/HhE4JCgis0M2HBp68vkpgJAFViOt udVVlDL82zl3EzV+wmpjOST6Be+vo2Ytp4RrqfMcpZ0HIlu3mNV5t2xjwYQS5CobnefD+d Y5w0Q0HcsQSo4ngUTTkZdXN5kzCNk6tN7GvhgPR0LIvHoQhshv+AbbAfs7YFYWaRXuj8Vw lkh/nFzQxZ9P5HTv+fB2m2vfWQjn41yKqXgWMaLBK7GbiSJImN3Ko7UhJyRuMufNuFz5W5 982LD8mstxgCWzvq38ZcH2h2sfYBstBtAkSg1BmSrNTRB84fVrhy29E8Pf0omw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D46441 --- Comment #14 from Piotr Pawel Stefaniak --- To expand a bit on what I was thinking, in the context of PS4 and > The problem with unbounded recursion from command substitutions is avoide= d by not allowing command substitutions my idea was to allow recursion bounded to the stack depth of 2 or perhaps s= ome other low number that would allow simple PS4=3D'`date`' or similar, but not anything more fancy. --=20 You are receiving this mail because: You are the assignee for the bug.=