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

SLURP_ARGS doesn't function when more than one argument is specified #120

Open
mirrorcult opened this issue Oct 2, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@mirrorcult
Copy link

Program

grimblast

Maintainers of the program

@fufexan

Bug or Regression?

Bug

Description

simply put, the code for passing custom cli args to slurp does not work:

GEOM=$(echo "$WINDOWS" | jq -r '.[] | "\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' | slurp $SLURP_ARGS)

fairly confident this never worked as bash just doesn't let you do this -- any argument after the first gets dropped when you try to pass it like this

image

as you can see here, only the first argument -d (show dimensions) is working, all of the others are nonfunctional.

How to reproduce

  1. set SLURP_ARGS with more than one argument separated by spaces
  2. see that any arguments after the first do not apply

Hyprland crash reports, program logs, images, videos

No response

@mirrorcult mirrorcult added the bug Something isn't working label Oct 2, 2024
@fufexan
Copy link
Member

fufexan commented Oct 2, 2024

Can you check whether quoting the variable makes it work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants