Skip to content

Commit

Permalink
[translation] Fix build
Browse files Browse the repository at this point in the history
And fix spec test
  • Loading branch information
Andy Chu committed Jan 14, 2021
1 parent aad9311 commit 18046c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dev.py
Expand Up @@ -301,7 +301,7 @@ def _TraceBegin(self):

return buf

def _TraceBegin2(self, char):
def _TraceBegin2(self, ch):
# type: (str) -> Optional[mylib.BufWriter]
"""For the stack printed by xtrace_rich"""
if not self.exec_opts.xtrace() or not self.exec_opts.xtrace_rich():
Expand All @@ -310,7 +310,7 @@ def _TraceBegin2(self, char):
# TODO: change to _EvalPS4
buf = mylib.BufWriter()
buf.write(self.indents[self.ind])
buf.write(char)
buf.write(ch)
if self.pid != -1:
buf.write(str(self.pid))
buf.write(' ')
Expand Down
1 change: 1 addition & 0 deletions spec/oil-options.test.sh
Expand Up @@ -196,6 +196,7 @@ shopt -s strict_glob
shopt -s strict_nameref
shopt -s strict_tilde
shopt -s strict_word_eval
shopt -s xtrace_rich
## END

#### osh -O oil:basic
Expand Down

0 comments on commit 18046c5

Please sign in to comment.