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

Counting characters in command output?



I thought this would give me the length of the string, but it seems to be counting words instead:

     zsh% echo ${#$(echo hello)}
     1

Is this a bug? I thought I'd need a modifier flag to treat output as an array and give me  a word count, while character count would be the default.

--
Mark J. Reed <markjreed@xxxxxxxxx>


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