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

Re: Bug#419233: zsh: error messages start with lowercase letters



> On 17/11/2026 09:16 GMT Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>  
> On Sat, Apr 14, 2007 at 4:39 PM Clint Adams <schizo@xxxxxxxxxx> wrote:
> >
> > On Sat, Apr 14, 2007 at 04:05:21PM +0200, Michael Schutte wrote:
> > > $ cd 404
> > > cd: datei oder Verzeichnis nicht gefunden: 404
> > >
> > > zsh puts the first character of an error message into lowercase.  While
> > > one may find that this looks better in English, it is clearly wrong in
> > > German where nouns are always capitalized.  A patch is attached.
>
> I came across this one while looking through some downstream bug
> trackers, and I think it's actually a little bit worse than the report
> says. In a language that uses some non-ascii characters, it is not
> entirely unthinkable that some sentences would start with such a
> character. Then, those sentences would start with a capital letter
> because tulower only works on ascii text, while other sentences would
> be lowercased. Whichever aesthetics you prefer, you have to agree that
> being inconsistent is the worst outcome.
> 
> I would argue that we simply drop this code as the quoted patch does.
> I could potentially imagine putting it behind an option if people are
> incredibly resistant to removing the downcasing, but it seems like a
> very specific thing to have an option for. Bash leaves them
> capitalized,

It's not a uniform standard in English, even taking away the technical
issues (i.e. it's not simply a kludge in Bash), so from the language
point of view I don't think there's any problem in changing it.

The issue is likely to be people matching on error messages in tests ---
which could happen in other languages with Latin character sets, so
specialising English isn't a fix.  I have absolutely no idea how common
this would turn out to be.  I think we'd have to apply the patch and ask
people to look for knock-on effects.

pws




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