Date: Thu, 12 Dec 2024 16:02:52 GMT From: Baptiste Daroussin <bapt@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 1e502fc1c421 - stable/13 - sh(1): -l is only valid in cli option not as set -l Message-ID: <202412121602.4BCG2qmB052862@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=1e502fc1c4215ac61db04598eb0a15d0e1ff7d6a commit 1e502fc1c4215ac61db04598eb0a15d0e1ff7d6a Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2024-11-20 13:14:43 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2024-12-12 16:02:48 +0000 sh(1): -l is only valid in cli option not as set -l (cherry picked from commit 0df81552d74d2c188a9323ffe18f6ebe799b86f9) --- 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 17fd878fa530..283bceb04e62 100644 --- a/bin/sh/options.c +++ b/bin/sh/options.c @@ -200,7 +200,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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412121602.4BCG2qmB052862>