typeset -l FOO="$(echo HeLlo WoRlD)" or more typically typeset -l FOO FOO=$(echo HeLlo WoRlD) On Tue, Oct 16, 2012 at 3:42 PM, TJ Luoma wrote: > Is there a (reasonably sane) way to combine these into one line: > > FOO=$(echo HeLlo WoRlD) > > FOO="${FOO:l}" > > I mean, I know I could do this: > > FOO=$(echo HeLlo WoRlD | tr '[:upper:]' '[:lower:]') > > but I mean is it possible to do this all in zsh. > > > I tried > > FOO=$(echo HeLlo WoRlD):l > > and > > FOO=($(echo HeLlo WoRlD):l) > > but they don't work, it just adds ":l" to the end of the variable. > > TjL > -- Kurtis Rader Caretake of the exceptional canines Junior and Chino