[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash bug?



On Thu, 30 Mar 2006 22:06:45 -0600, Matthew R. Dempsky wrote:

> On Thu, Mar 30, 2006 at 07:39:12PM -0500, T wrote:
>> So is it bash that is eating the trailing \n's?
> 
> Yes, but it's not a bug.  See the section about ``Command Substitution''
> in the bash(1) man page.

Got it:

,-----
| Bash performs the expansion by executing command and replacing the command
| substitution with the standard output of the command, with any trailing
| newlines deleted.  Embedded newlines are not deleted.
`-----

the "feature" is so confusing.




Reply to: