Akim Demaille wrote: > Le 10 juil. 2012 à 10:14, Jim Meyering a écrit : > >>> + case $* in >>> + *$nl*) me_=$(printf "$me"|tr "$nl|" '??') >> >> Is it worth testing for both $nl and '|' ? > > I tried to keep what you did about $nl in $me (it would break > the sed command). I used printf, since the \n from echo gave > a spurious ? at the end of $me.
I meant "is it worth *also* testing for '|' there"? E.g., if $me contains '|', but no newline. Definitely not a big issue.