Skip to content

feat: configurable shell options and shopt command#164

Merged
dsherret merged 3 commits intodenoland:mainfrom
dsherret:feat_support_shell_options
Jan 20, 2026
Merged

feat: configurable shell options and shopt command#164
dsherret merged 3 commits intodenoland:mainfrom
dsherret:feat_support_shell_options

Conversation

@dsherret
Copy link
Member

@dsherret dsherret commented Jan 19, 2026

Supports configuring the following shell options:

  • nullglob
  • failglob

Closes #162

mut context: ShellCommandContext,
) -> LocalBoxFuture<'static, ExecuteResult> {
Box::pin(async move {
let mut set_mode = None; // None = query, Some(true) = -s, Some(false) = -u
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this written by AI? :D This combination is strange compared to using an enum

Copy link
Member Author

@dsherret dsherret Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I don’t think it’s that strange because each individual one can be set in an iteration of the loop.

Oh wait, I misunderstood this when I originally commented, but I think Option<bool> makes sense here.

@dsherret dsherret merged commit 766ee5b into denoland:main Jan 20, 2026
5 of 7 checks passed
@dsherret dsherret deleted the feat_support_shell_options branch January 20, 2026 15:13
@wolfv
Copy link
Contributor

wolfv commented Jan 20, 2026

Thanks! This is great!

@dsherret
Copy link
Member Author

I just remembered about the windows * handling in your original PR. I'll reopen it in a minute with just that change and get it merged. Just fixing the pipefail pr first.

@wolfv
Copy link
Contributor

wolfv commented Jan 20, 2026

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants