had a snippet which worked well before but no longer works. involves io redirection. snippet/error can be found below:
~/.config/fish/config.fish (line 8): Expected a string, but instead found a '&'
exec startup --user 1>>~/.cache/startup.log 2>>&1
from sourcing file ~/.config/fish/config.fish
called during startup
source: Error while reading file '/home/person/.config/fish/config.fish'
I am not using any customizations, this is a fresh install and I had the same issue on my old customized installation
The text was updated successfully, but these errors were encountered:
"Append to an fd" doesn't really make any sense. You write to where the fd currently is or you don't, the difference between "append" vs "overwrite" happens earlier, when the initial write position is chosen.
I'd be okay with accepting the second ">" for compatibility, but we'd be doing nothing with it.
So, as a workaround: Use 2>&1. That'll do the exact same thing.
Appending to an fd doesn't really make sense, but we allowed the
syntax previously and it was actually used.
It's not too harmful to allow it, so let's just do that again.
For the record: Zsh also allows it, bash doesn't.
(cherry picked from commit aba900a)