fish shell redirection problem #2

Closed
opened 2021-07-09 09:57:31 -05:00 by muralikodali · 3 comments
muralikodali commented 2021-07-09 09:57:31 -05:00 (Migrated from github.com)

It is a convenient script for package management.
I have substituted yay with paru

I am able to install and remove packages without problem.
but, fzf preview pane is showing error as shown below.

screenshot_20210709202144

it is showing error as fish shell piping output (redirection).

how can this shell redirection error can be avoided ?

It is a convenient script for package management. I have substituted `yay` with `paru` I am able to install and remove packages without problem. but, fzf preview pane is showing error as shown below. ![screenshot_20210709202144](https://user-images.githubusercontent.com/11482766/125097291-9c5dcd80-e0f3-11eb-8634-00e46272e868.png) it is showing error as fish shell piping output (redirection). how can this shell redirection error can be avoided ?
ericlay commented 2021-07-09 14:57:09 -05:00 (Migrated from github.com)

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

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
muralikodali commented 2021-07-10 01:09:01 -05:00 (Migrated from github.com)

Thanks

your drop in replacement is working without errors.

Thanks your [drop in replacement](https://ghostbin.com/paste/t3BW9) is working without errors.
ericlay commented 2021-07-16 16:23:43 -05:00 (Migrated from github.com)

@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.

@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.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ericlay/fuzzy-pkg-finder#2
No description provided.