~ubuntu-branches/ubuntu/trusty/bash/trusty-security

« back to all changes in this revision

Viewing changes to CWRU/sh-redir-hack

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-03-03 22:52:05 UTC
  • mfrom: (1.3.5) (2.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20140303225205-87ltrt5kspeq0g1b
Tags: 4.3-1ubuntu1
* Merge with Debian; remaining changes:
  - skel.bashrc:
    - Run lesspipe.
    - Enable ls aliases.
    - Set options in ll alias to -alF.
    - Define an alert alias.
    - Enabled colored grep aliases.
  - etc.bash.bashrc:
    - Add sudo hint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Add to `subshell' production in parse.y and recompile -DREDIRECTION_HACK to
 
2
get `< xx (command)' sh compatibility.
 
3
 
 
4
        |       redirections '(' list ')'
 
5
                        {
 
6
#if defined (REDIRECTION_HACK)
 
7
                          /* XXX - C News sh compatibility hack - XXX */
 
8
                          $3->redirects = $1;
 
9
                          $3->flags |= CMD_WANT_SUBSHELL;
 
10
                          $$ = $3;
 
11
#else
 
12
                          yyerror ();
 
13
                          YYABORT;
 
14
#endif
 
15
                        }