diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 04:21:41 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | f31c84eb166e8071152b2fa2922d54f492893f33 (patch) | |
| tree | f9153cf7250cbe90506ac27305feee18b2b9e07c /src/exec.zig | |
| parent | b85f9e56fa04291fc1791bdceae7b0f2c284114c (diff) | |
| download | pardes-f31c84eb166e8071152b2fa2922d54f492893f33.tar.gz pardes-f31c84eb166e8071152b2fa2922d54f492893f33.zip | |
A bare Shell names the shell it goes back to, and 12:0 says columns count from 1
A bare Shell reset to the default without saying which; it now says
Shell: the default again, <shell> ($SHELL, else /bin/sh). A line:col of
column 0 said only address out of range; it now adds that a column
counts from 1.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/exec.zig')
| -rw-r--r-- | src/exec.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exec.zig b/src/exec.zig index 953ae0f3..d7a88ecc 100644 --- a/src/exec.zig +++ b/src/exec.zig @@ -805,7 +805,9 @@ pub fn applySettingBuiltin(p: *Pardes, setting: config.Runtime.Setting, arg: ?[] if (want.len == 0) { p.settings.shell.requested.clear(); p.settings.shell.pending = true; - return; + if (!p.announce) return; + var said: [320]u8 = undefined; + return p.setMessage(p.active, std.fmt.bufPrint(&said, "Shell: the default again, {s} ($SHELL, else /bin/sh)", .{config.defaultShell()}) catch "Shell: the default again"); } if (comptime pardes.hosted) { var why: [320]u8 = undefined; |
