Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: BUG: failure in "vcs_info prompt" aborts precmd function



On Nov 22, 11:20pm, Mikael Magnusson wrote:
} Subject: Re: BUG: failure in "vcs_info prompt" aborts precmd function
}
} Passing a non-existing file to $(< is a fatal error, or whichever term
} is correct here. I'm not sure if that's a bug or not since it's
} documented to not be the case. (in Command Substitution,
}    The substitution `$(cat foo)' may be replaced
}    by  the  equivalent but  faster  `$(<foo)'.
} )

I think you're reading way to much into the phrase "the equivalent".
It's not meant to imply precise equivalence on failure cases, only
that when it works it produces the same string.

On the other hand, I don't know WHY $(<notafile) was made a fatal error.



Messages sorted by: Reverse Date, Date, Thread, Author