fish shell redirection problem #2
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ericlay/fuzzy-pkg-finder#2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It is a convenient script for package management.
I have substituted
yay
withparu
I am able to install and remove packages without problem.
but, fzf preview pane is showing error as shown below.
it is showing error as fish shell piping output (redirection).
how can this shell redirection error can be avoided ?
Glad it was easy substitute for you!
Fish shell handles some things differently. That style of redirect is a bash-ism. For fish the preview commands will work if edited as below:
'cat (paru -Si {1} | psub) (pacman -Ql {1} 2>/dev/null | awk "{print \$2}" | psub)'
Fish is a popular shell. I think the answer would be to check default shell and choose which version on install. Which means refactoring the pkgbuild and uploading the fish script file.
In the mean time, here's a drop in replacement that should work, https://ghostbin.com/paste/t3BW9
Thanks
your drop in replacement is working without errors.
@muralikodali
I've simply added a second script that handles the redirects for fish shells as
fpff
, same as the drop in replacement. If you installed from AUR the changes will be picked up and the new command will be available to you.