Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use shellwords for .stowrc parsing #111

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Commits on Jun 15, 2024

  1. Use shellwords for .stowrc parsing

    - Use `shellwords` to parse `.stowrc` files from `Text::ParseWords`
    - Add test for `.stowrc` parsing with quotes
      - Add `stow directory` to `tmp-testing-trees` for testing
    
    This change allows `.stowrc` arguments to be parsed similar to shell arguments,
    where quotes can be used to group an argument with spaces.
    
    However, this change affects the behavior in --ignore, --defer, --override.
    
    (?^:$HOME\z)
    (?^:\A$HOME)
    (?^:\A$HOME)
    jeremy-code authored and aspiers committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    d760f96 View commit details
    Browse the repository at this point in the history
  2. Fix parsing of regexp options like --override=bin|man

    Previously the \A and \z anchoring for --ignore / --override / --defer
    was being applied without wrapping the user-specified regexp in
    parentheses, so if it was something like bin|man then the anchor would
    only apply to one half of those two paths.  So add parentheses, and
    also change from qr() to qr{} syntax to visually differentiate between
    regexp boundaries and parentheses inside the regexp.
    aspiers committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    f0ec80f View commit details
    Browse the repository at this point in the history