Skip to content

Conversation

poseidon-rises
Copy link
Member

Add quotes to the preview command in television integration to prevent the shell from interpreting options with <name> as writing the output of the command name to a file with the name of the remainder of the option name.

For example, when running the command to preview accounts.calendar.<name>.remote (nix-search-tv preview ...), the shell would interpret this as name > .remote, create the file .remote, and error out because the command name was not found.

Description

Checklist

  • Change is backwards compatible.

  • Code formatted with nix fmt or
    nix-shell -p treefmt nixfmt deadnix keep-sorted --run treefmt.

  • Code tested through nix run .#tests -- test-all or
    nix-shell --pure tests -A run.all.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.
    • Generate a news entry. See News
    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

Add quotes to the preview command to prevent the shell from interpreting
options with `<name>` as writing the output of the command name to a
file with the name of the remainder of the option name.
@khaneliman khaneliman merged commit 3c3510e into nix-community:master Aug 21, 2025
7 checks passed
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.

2 participants