From nobody Wed Nov 20 13:15:51 2024 X-Original-To: dev-commits-src-all@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 4Xthgr1kv9z5dkfD; Wed, 20 Nov 2024 13:15:52 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xthgr1D3Sz3x3R; Wed, 20 Nov 2024 13:15:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732108552; 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; bh=uEV8tg53aypHtRvnaDsC3A8rLPFxB1Z+baiXIJy3X0s=; b=p+EIivo/+Qa9J39JZZyfZxmJK9scU/NO4atvgdAEdDMN+kYiiebU6ib+cXCdPTMy3XI/Yy 08cup48p2BJr1azUDbG6vU8Tcl5Rr+2VUCaASehqSFqjB9jKI/x2pKnBkHcyOCALklUaYS ldIyozedaxEAooxu1IRkDlVxzMRB7jWaoLhhNnmLTbQFj2SeHQbfqzd5UBrBUh2z72KngA C/TVX8fkJhshIXc/vkrxpZUZp7OjBMeaz7Xo2a/9mbQ8AYbe+QrB8aNhqkFf8/tEZZgTR4 zIDW8yqxBkfSRgxVAMhmnDxlBfIgbFQj/ITA3HThhl9fy9yQ0Lo13O+P5CAlFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732108552; 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; bh=uEV8tg53aypHtRvnaDsC3A8rLPFxB1Z+baiXIJy3X0s=; b=HhBhjeAo8HHCz4tUZXpKUYK1FpbDeYbCt8WvpDbqWCLYywwnPvwcIgDWzVXZl/Nv0QsNxY m59GF+vBzFQNH35YaxtxYfVtizmfCET+R8ZoG5aSjzlJSAUXo7s3lnh2A6PasK9uEVNBGk xXKg23nI30bcoarJR2N6USyuY8Y3c7jeqya1FO3N1O7twXT3sSXW6YNXSo5a7BZerylXVP 4nDo6eigO1V3TVgnG+a/zXjuVIAqUbdlF4VGDcBhFh9mFnMAtyDsiMcXvpqH9Wi+zzvot8 ahb4zLovJUOJvMjKDjF5voMdFWZTTRLLbwaB0/CnDQPvZVQLy9QC9qIH+4hb/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732108552; a=rsa-sha256; cv=none; b=TvANjmF0VB9jM4HKQbdte9i9iYTPenrzxGUCqH+jbbWTPqARR9cqcT0mKzUrhq74/1vL3F XptwJExhlCMeM3HdemBHjdo0rmqxKt2XlPyhuMQLdyfy6bDnAqzD3r7TFRBj+VfiG6XbdD IerzB50Q+RwvbH65KV0LHk/SgsuL68yHuQ8T+sKEtGWRn+1qUGxc4v0sMjDiY55RVR0AeF wMJ3XufaYo3zcEEDBrO2VPWIsCCjoWcwGFnv2wiIRglttwapyQJq6ihHe4X/kL2YXrWoBO ug11i7lcfAXdK0v1sLULILuKurOawAUipRD768ylCET1Vj6zLnEy6CQd9wD1bw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xthgr0jhSzwBS; Wed, 20 Nov 2024 13:15:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AKDFp0G080552; Wed, 20 Nov 2024 13:15:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AKDFpZu080549; Wed, 20 Nov 2024 13:15:51 GMT (envelope-from git) Date: Wed, 20 Nov 2024 13:15:51 GMT Message-Id: <202411201315.4AKDFpZu080549@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 0df81552d74d - main - sh(1): -l is only valid in cli option not as set -l List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0df81552d74d2c188a9323ffe18f6ebe799b86f9 Auto-Submitted: auto-generated The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=0df81552d74d2c188a9323ffe18f6ebe799b86f9 commit 0df81552d74d2c188a9323ffe18f6ebe799b86f9 Author: Baptiste Daroussin AuthorDate: 2024-11-20 13:14:43 +0000 Commit: Baptiste Daroussin CommitDate: 2024-11-20 13:15:41 +0000 sh(1): -l is only valid in cli option not as set -l --- bin/sh/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sh/options.c b/bin/sh/options.c index 54a9cb4c1c49..92857027843a 100644 --- a/bin/sh/options.c +++ b/bin/sh/options.c @@ -194,7 +194,7 @@ options(int cmdline) if (q == NULL || minusc != NULL) error("Bad -c option"); minusc = q; - } else if (c == 'l') { + } else if (c == 'l' && cmdline) { login = 1; } else if (c == 'o') { minus_o(*argptr, val);