[llvm-commits] [llvm] r173421 - /llvm/trunk/utils/lit/lit/ShUtil.py
NAKAMURA Takumi
geek4civic at gmail.com
Thu Jan 24 22:30:37 PST 2013
Author: chapuni
Date: Fri Jan 25 00:30:36 2013
New Revision: 173421
URL: http://llvm.org/viewvc/llvm-project?rev=173421&view=rev
Log:
lit/ShUtil.py: Deprecate '!' in shell expression. It is not sh-compatible.
Modified:
llvm/trunk/utils/lit/lit/ShUtil.py
Modified: llvm/trunk/utils/lit/lit/ShUtil.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/ShUtil.py?rev=173421&r1=173420&r2=173421&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/ShUtil.py (original)
+++ llvm/trunk/utils/lit/lit/ShUtil.py Fri Jan 25 00:30:36 2013
@@ -129,7 +129,7 @@
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 @@
def parse_pipeline(self):
negate = False
- if self.look() == ('!',):
- self.lex()
- negate = True
commands = [self.parse_command()]
while self.look() == ('|',):
@@ -317,10 +314,6 @@
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),
More information about the llvm-commits
mailing list