zsh-users
 help / color / mirror / code / Atom feed
* changing case to Title Case
@ 2012-05-14 19:30 TJ Luoma
  2012-05-14 19:54 ` Valodim Skywalker
  2012-05-15 19:29 ` Peter Stephenson
  0 siblings, 2 replies; 3+ messages in thread
From: TJ Luoma @ 2012-05-14 19:30 UTC (permalink / raw)
  To: zsh-users


$ foo="ONE TWO thRee FoUR"
$ print -r -- "${(C)foo}"

will output this:

One Two Three Four

but this:

$ foo="ONE TWO thRee FoUR's"
$ print -r -- "${(C)foo}"



will give this:

One Two Three Four'S

Note the S is capitalized

$ foo="ONE TWO thRee FoUR's.pdf"
$ print -r -- "${(C)foo}"     

will give this:

One Two Three Four'S.Pdf

Note that the P in PDF and the S after ' are capitalized.

Is there any way to avoid that?

TjL






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-15 19:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-14 19:30 changing case to Title Case TJ Luoma
2012-05-14 19:54 ` Valodim Skywalker
2012-05-15 19:29 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).