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

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



On Nov 23,  7:52pm, Mikael Magnusson wrote:
}
} Maybe it predates the UNSET option and nobody ever caught it? compare eg,
} % ( setopt nounset; echo $a; echo hello )
} zsh: a: parameter not set
} % ( echo $(< foo); echo hello )
} zsh: no such file or directory: foo
} 
} It is sort of a parameter expansion, after all.

Command substitution and parameter expansion are only loosely related,
but I could see an argument for making this behavior depend on NOUNSET.

It defintely predates the NOUNSET option (by decades), but the former
behavior of parameter expansion was as if UNSET were always in effect,
whereas $(<notafile) has always been an error.



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