Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366997 - Parser can't handle echo foo > a b
Summary: Parser can't handle echo foo > a b
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: libbash (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Petteri Räty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-12 14:53 UTC by Petteri Räty (RETIRED)
Modified: 2018-01-25 17:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2011-05-12 14:53:28 UTC
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.
Comment 1 Pacho Ramos gentoo-dev 2018-01-25 17:57:53 UTC
Developer retired (and his mail address is not active anymore)