sjl / z-fish

A fork of http://github.com/rupa/z to port it to the Fish shell.
134 stars 30 forks source link

awk: cmd. line:14: fatal: cannot open file `^/dev/null' for reading: No such file or directory #13

Open tsujigiri opened 2 years ago

tsujigiri commented 2 years ago

I'm seeing the above error recently when navigating around with cd, probably since a fish update. I updated z to the latest commit on master. Fish shell is on 3.3.1. z's frecency file doesn't seem to be updated either.

cah4a commented 2 years ago

Just remove ^/dev/null awk argument at line 56 and it will work.

jvast commented 2 years ago

@tsujigiri

simply change ^/dev/null with 2>/dev/null and all will be well again as 2> is equivalentB. I don't know why the redirect shortcut broke for using ^, but it is.