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:
- References:
- Printf bug?
- From: T <mlist4suntong@yahoo.com>
- Re: Printf bug?
- From: "Sumo Wrestler (or just ate too much)" <sumo.wrestler.0rj82m+no.spam.abuse@earthlink.net>
- Re: Bash bug?
- From: T <mlist4suntong@yahoo.com>
- Re: Bash bug?
- From: "Matthew R. Dempsky" <mrd@alkemio.org>