summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 03:04:42 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit80ed1bf997117a36b9d0e10744de736e84d96e7f (patch)
tree9ad644b3d1abf076959ed4b6aad7bc1622e30828 /src/builtins.zig
parentbeea3aaa8d35c00145c78a746393d71b8b14e658 (diff)
downloadpardes-80ed1bf997117a36b9d0e10744de736e84d96e7f.tar.gz
pardes-80ed1bf997117a36b9d0e10744de736e84d96e7f.zip
Shell refuses a name that is no executable, and bare restores the default
Shell took any word and the host quietly ran another shell at the next spawn. It now refuses a path or name that is not executable ("Shell: x: no executable by that name", failing a ctl write, logged err), a bare Shell goes back to the default, and a default $SHELL that is not executable falls back to /bin/sh. shellset's golden takes the refusal on the message row (re-recorded by name). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/builtins.zig b/src/builtins.zig
index f7104a8c..f7dd543a 100644
--- a/src/builtins.zig
+++ b/src/builtins.zig
@@ -170,9 +170,10 @@ pub const registry = struct {
if (@intFromEnum(b) == i) return @hasDecl(T, "requires_arg") and T.requires_arg;
inline for (comptime settingList(), manualBuiltinCount()..) |setting, i|
if (@intFromEnum(b) == i) return switch (setting.action) {
- // a switch flips bare, a choice steps, and DumpDir bare is the default
- .toggle, .transition, .scene, .dump_dir, .choice, .lift, .shader_animation, .motion => false,
- .shell, .theme, .font, .tagline_size, .window_opacity, .window_blur, .message_ms, .shader, .inactive_dim, .grip_width => true,
+ // a switch flips bare, a choice steps, and DumpDir and Shell bare
+ // are the default
+ .toggle, .transition, .scene, .dump_dir, .choice, .lift, .shader_animation, .motion, .shell => false,
+ .theme, .font, .tagline_size, .window_opacity, .window_blur, .message_ms, .shader, .inactive_dim, .grip_width => true,
};
unreachable;
}