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

Re: changing case to Title Case



I usually split off the extension for this, like:
    ${(C)foo:r}.${foo:e}

Note this might mess up for cases where $foo does not have an extension.

The 's is quite a special case, I don't think there's a non-ugly way to
handle it...

 - V

Attachment: signature.asc
Description: Digital signature



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