Re: newlines and $(...) processing

2007-05-13 Thread Bob Proulx
Andreas Schwab wrote: > [EMAIL PROTECTED] (Bob Proulx) writes: > > But when this is used with a command substitution the newline > > disappears. > > Command substitution always strips trailing newlines. Here is the part that I have previously missed: man bash Command Substitution .

Re: newlines and $(...) processing

2007-05-13 Thread Andreas Schwab
[EMAIL PROTECTED] (Bob Proulx) writes: > I was asked a question recently and I have not been able to deduce the > answer and so am appealing to the group for further education. I > could not find a match for my question in the FAQ. > > $ printf "\n" | od -tx1 > 000 0a > $ printf "\n" |