equal
deleted
inserted
replaced
657 inpython = False |
657 inpython = False |
658 after.setdefault(pos, []).append(l) |
658 after.setdefault(pos, []).append(l) |
659 prepos = pos |
659 prepos = pos |
660 pos = n |
660 pos = n |
661 addsalt(n, False) |
661 addsalt(n, False) |
|
662 cmd = l[4:].split() |
|
663 if len(cmd) == 2 and cmd[0] == 'cd': |
|
664 l = ' $ cd %s || exit 1\n' % cmd[1] |
662 script.append(l[4:]) |
665 script.append(l[4:]) |
663 elif l.startswith(' > '): # continuations |
666 elif l.startswith(' > '): # continuations |
664 after.setdefault(prepos, []).append(l) |
667 after.setdefault(prepos, []).append(l) |
665 script.append(l[4:]) |
668 script.append(l[4:]) |
666 elif l.startswith(' '): # results |
669 elif l.startswith(' '): # results |