betelgeuse@pena ~/gsoc/libbash $ ./ast_printer -e 'echo foo > a b' -memory-(1) : error 3 : ()* loopback of 121:55: ( ( BLANK )* PIPE ( BLANK )* command )*, at offset 12 near [Index: 8 (Start: 162240441-Stop: 162240441) ='b', type<96> Line: 1 LinePos:12] : cannot match to any predicted input... (LIST Tree Error Node) betelgeuse@pena ~/gsoc/libbash $ ./ast_printer -e 'echo foo b > a' (LIST (COMMAND (STRING echo) (STRING foo) (STRING b) (REDIR > (STRING a)))) These two expressions should produce the same AST. Redirection operators can be at any place in a simple command.
Developer retired (and his mail address is not active anymore)