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

[BUG]: shift -1 is not a valid option #723

Open
r1bilski opened this issue Feb 24, 2024 · 1 comment
Open

[BUG]: shift -1 is not a valid option #723

r1bilski opened this issue Feb 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@r1bilski
Copy link

Describe the bug

Running ytfzf with no arguments will attempt to call shift with negative argument. According to Open Group Base Specifications on shift, the argument must be an unsigned integer.
My shell yash, does not process -1 in POSIX mode.

To Reproduce

Run ytfzf with no arguments

Expected behavior

shift is not called with negative argumetn

Screenshots

Information

  • OS: Artix Linux
  • Terminal: alacritty 0.13.1
  • Ytfzf version: master / 2.6.2
  • Output of readlink $(which sh): yash (v2.55)
  • (if is a thumbnail issue) run ytfzf --thumbnail-log=log.txt and post the file:

Additional context

https://pubs.opengroup.org/onlinepubs/009695399/

@r1bilski r1bilski added the bug Something isn't working label Feb 24, 2024
@Euro20179
Copy link
Collaborator

as mentioned there won't not be a new update so you should be safe just editing the file to fix it.

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