Skip to content

feat: configurable shell options and shopt command#164

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

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

Conversation

@dsherret

@dsherret dsherret commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

@dsherret dsherret Jan 20, 2026

Copy link
Copy Markdown
Contributor Author

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

wolfv commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Thanks! This is great!

@dsherret

Copy link
Copy Markdown
Contributor 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

wolfv commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

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