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

sudo: cannot complete executable from path #2458

Closed
2 of 12 tasks
samuelallan72 opened this issue Jul 25, 2024 · 1 comment · Fixed by #2459
Closed
2 of 12 tasks

sudo: cannot complete executable from path #2458

samuelallan72 opened this issue Jul 25, 2024 · 1 comment · Fixed by #2459
Labels
bug Something isn't working fund Fundable with polar.sh linux nushell

Comments

@samuelallan72
Copy link
Contributor

samuelallan72 commented Jul 25, 2024

Current Behavior

Completion for an executable from a file path doesn't work with sudo:

$ stat ./bin/test-script.sh
  File: ./bin/test-script.sh
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 252,1	Inode: 16401316    Links: 1
Access: (0775/-rwxrwxr-x)  Uid: ( 1000/  ubuntu)   Gid: ( 1000/  ubuntu)
Access: 2024-07-25 09:47:05.925878165 +0930
Modify: 2024-07-25 09:47:05.925878165 +0930
Change: 2024-07-25 09:47:08.749471334 +0930
 Birth: 2024-07-25 09:47:05.925397352 +0930

$ sudo ./bin/test           <-- press tab
NO RECORDS FOUND

Completion works fine for executables on the PATH.

Expected Behavior

sudo completion should include file paths to executables too.

Steps To Reproduce

No response

Version

3dab9d3

OS

  • Darwin
  • Linux
  • Termux
  • Windows

Shell

  • Bash
  • Elvish
  • Fish
  • Nushell
  • Oil
  • Powershell
  • Xonsh
  • Zsh

Anything else?

No response

Polar

Fund with Polar
@samuelallan72 samuelallan72 added bug Something isn't working fund Fundable with polar.sh labels Jul 25, 2024
@samuelallan72
Copy link
Contributor Author

Awesome, thanks for addressing! 😁

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

Successfully merging a pull request may close this issue.

1 participant