Re: [BUG?] here documents, command substitution, and the { keyword

2011-03-15 Thread Herbert Xu
On Sun, Nov 07, 2010 at 02:21:21AM +, Jonathan Nieder wrote: > > Just ran into some strange behavior: This patch should fix the problem. commit ec2c84d3c4dba4b74440d72bdd1de416a9acd2a9 Author: Herbert Xu Date: Tue Mar 15 17:41:53 2011 +0800 [PARSER] Fix clobbering of checkkwd

Re: [BUG?] here documents, command substitution, and the { keyword

2010-11-06 Thread Jonathan Nieder
Jonathan Nieder wrote: > $ sh test.sh > hello > test.sh: 7: {: not found > 127 > hello > test.sh: 10: Syntax error: "}" unexpected > > bash, mksh, pdksh, and ksh93 all print hello as expected. The problem > is reproducible with all versions of dash in the git repo. err, by this I mean: $ bash

[BUG?] here documents, command substitution, and the { keyword

2010-11-06 Thread Jonathan Nieder
Hi, Just ran into some strange behavior: $ cat test.sh #!/bin/sh echo hello >greeting cat