Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

fish_pwd error

📅 2016-Dec-15 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ error, fish ⬩ 📚 Archive

Problem

I updated the Fish shell using the apt command:

$ sudo apt install fish

After the update, Fish threw up this error:

fish: __fish_pwd
      ^
in command substitution
    called on standard input


in command substitution
    called on standard input

Solution

This turned out to be because the /usr/share/fish/functions/__fish_pwd.fish function file it was looking for could not be found! The apt update had screwed up and had deleted some essential configuration files of Fish.

I removed and reinstalled Fish shell:

$ sudo apt purge fish
$ sudo apt install fish

I noticed that the above function file was correctly installed and available now. Fish worked fine after this :)

Tried with: Fish 2.4.0 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧