diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-25 06:30:36 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-25 06:30:36 +0000 |
commit | e5297c4636d2e8e8b8dc8082bc837a83f23c581d (patch) | |
tree | c92da1e6a247468ca2e1b0546f9f13186aeb5fd5 | |
parent | 5b07eeb24a03546ffcd2677a6be7f4d321dc03f1 (diff) | |
download | bcm5719-llvm-e5297c4636d2e8e8b8dc8082bc837a83f23c581d.tar.gz bcm5719-llvm-e5297c4636d2e8e8b8dc8082bc837a83f23c581d.zip |
lit/ShUtil.py: Deprecate '!' in shell expression. It is not sh-compatible.
llvm-svn: 173421
-rw-r--r-- | llvm/utils/lit/lit/ShUtil.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/utils/lit/lit/ShUtil.py b/llvm/utils/lit/lit/ShUtil.py index dda622a48a8..5d65dc0d3d9 100644 --- a/llvm/utils/lit/lit/ShUtil.py +++ b/llvm/utils/lit/lit/ShUtil.py @@ -129,7 +129,7 @@ class ShLexer: lex_one_token - Lex a single 'sh' token. """ c = self.eat() - if c in ';!': + if c == ';': return (c,) if c == '|': if self.maybe_eat('|'): @@ -219,9 +219,6 @@ class ShParser: def parse_pipeline(self): negate = False - if self.look() == ('!',): - self.lex() - negate = True commands = [self.parse_command()] while self.look() == ('|',): @@ -317,10 +314,6 @@ class TestShParse(unittest.TestCase): Command(['c'], [])], False)) - self.assertEqual(self.parse('! a'), - Pipeline([Command(['a'], [])], - True)) - def test_list(self): self.assertEqual(self.parse('a ; b'), Seq(Pipeline([Command(['a'], [])], False), |