chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
py/tripe.py.in: Raise an error if a command token contains a newline.
[tripe]
/
py
/
tripe.py.in
diff --git
a/py/tripe.py.in
b/py/tripe.py.in
index a9be66872cfbbc0b1e4223272238db4cbef9719c..db194e29dface9bd148732024dbbe345f1b4ffd3 100644
(file)
--- a/
py/tripe.py.in
+++ b/
py/tripe.py.in
@@
-446,6
+446,9
@@
class TripeCommand (object):
def __init__(me, words):
"""Make a new command consisting of the given list of WORDS."""
def __init__(me, words):
"""Make a new command consisting of the given list of WORDS."""
+ for word in words:
+ if '\n' in word:
+ raise TripeInternalError("command word contains newline")
me.words = words
class TripeSynchronousCommand (TripeCommand):
me.words = words
class TripeSynchronousCommand (TripeCommand):