-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- --- foobar {} None None 0 --- a[x { } None None 0 --- a[]=$foo$bar { words: [{} {} {}] right: ) } (Token id: Id.Lit_VarLike length: 2 col: 0 line: (SourceLine line_num:1 content:"a=(1 2 3)" src:(source.MainFile path:word_parse_test.py)) ) None 1 --- a+=(1 2 3) { words: [{} {} {}] right: ) } (Token id: Id.Lit_VarLike length: 3 col: 0 line: (SourceLine line_num:1 content:"a+=(1 2 3)" src:(source.MainFile path:word_parse_test.py)) ) None 1 --- s= { } (Token id: Id.Lit_VarLike length: 2 col: 0 line: (SourceLine line_num:1 contentError: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) -------------------------------------------------------------------------------- Error: 'tuple' object has no attribute 'left' Error: _MakeAssignPair() takes exactly 3 arguments (2 given) ...:"s=~foo" src:(source.MainFile path:word_parse_test.py)) ) None 1 --- a[x]=~ { } (Token id: Id.Lit_ArrayLhsOpen length: 2 col: 0 line: (SourceLine line_num:1 content:"a[x]=~" src:(source.MainFile path:word_parse_test.py)) ) (Token id: Id.Lit_ArrayLhsClose length: 2 col: 3 line: (SourceLine line_num:1 content:"a[x]=~" src:(source.MainFile path:word_parse_test.py)) ) 3 (command.Simple blame_tok: more_env: [] words: [{} {(SQ "my dir")} {($ x)} { ($ bar)}] is_last_cmd: F )(command.Simple blame_tok: more_env: [] words: [ {} {} {} {} {} ] is_last_cmd: F ) --- ~ {} (CompoundWord parts: [ (word_part.TildeSub left: (Token id: Id.Lit_Tilde length: 1 col: 0 line: (SourceLine line_num:1 content:"~" src:(source.MainFile path:word_parse_test.py)) ) ) ] ) --- ~/ { } (CompoundWord parts: [ (word_part.TildeSub left: (Token id: Id.Lit_Tilde length: 1 col: 0 line: (SourceLine line_num:1 content:"~/" src:(source.MainFile path:word_parse_test.py)) ) ) (Token id:Id.Lit_Slash length:1 col:1 line:...0x7f76acdc1998) ] ) --- ~/zz { } (CompoundWord parts: [ (word_part.TildeSub left: (Token id: Id.Lit_Tilde length: 1 col: 0 line: (SourceLine line_num:1 content:"~/zz" src:(source.MainFile path:word_parse_test.py)) ) ) (Token id:Id.Lit_Slash length:1 col:1 line:...0x7f76acdc19f0) (Token id:Id.Lit_Chars length:2 col:2 line:...0x7f76acdc19f0) ] ) --- ~andy { } (CompoundWord parts: [ (word_part.TildeSub left: (Token id: Id.Lit_Tilde length: 1 col: 0 line: (SourceLine line_num:1 content:"~andy" src:(source.MainFile path:word_parse_test.py)) ) name: (Token id:Id.Lit_Chars length:4 col:1 line:...0x7f76acdc1aa0) user_name: andy ) ] ) --- ~andy/ { } (CompoundWord parts: [ (word_part.TildeSub left: (Token id: Id.Lit_Tilde length: 1 col: 0 line: (SourceLine line_num:1 content:"~andy/" src:(source.MainFile path:word_parse_test.py)) ) name: (Token id:Id.Lit_Chars length:4 col:1 line:...0x7f76acdc1a48) user_name: andy ) (Token id:Id.Lit_Slash length:1 col:5 line:...0x7f76acdc1a48) ] ) --- ~andy/zz { } (CompoundWord parts: [ (word_part.TildeSub left: (Token id: Id.Lit_Tilde length: 1 col: 0 line: (SourceLine line_num: 1 content: "~andy/zz" src: (source.MainFile path:word_parse_test.py) ) ) name: (Token id:Id.Lit_Chars length:4 col:1 line:...0x7f76acdc1998) user_name: andy ) (Token id:Id.Lit_Slash length:1 col:5 line:...0x7f76acdc1998) (Token id:Id.Lit_Chars length:2 col:6 line:...0x7f76acdc1998) ] ) --- ~bob# { } None --- ~bob#/ { } None --- ~bob#/zz { } None --- None --- foo {} None --- ~:~/:~/zz:~andy:~andy/:~andy/zz:~bob#:~bob#/:~bob#/zz::foo { tilde sub parts = 6 . ---------------------------------------------------------------------- Ran 4 tests in 0.024s OK } DETECTED (CompoundWord parts: [ (word_part.TildeSub left: (Token id: Id.Lit_Tilde length: 1 col: 0 line: (SourceLine line_num: 1 content: "~:~/:~/zz:~andy:~andy/:~andy/zz:~bob#:~bob#/:~bob#/zz::foo" src: (source.MainFile path:word_parse_test.py) ) ) ) (Token id:Id.Lit_Colon length:1 col:1 line:...0x7f76acdc1aa0) (word_part.TildeSub left:(Token id:Id.Lit_Tilde length:1 col:2 line:...0x7f76acdc1aa0)) (Token id:Id.Lit_Slash length:1 col:3 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Colon length:1 col:4 line:...0x7f76acdc1aa0) (word_part.TildeSub left:(Token id:Id.Lit_Tilde length:1 col:5 line:...0x7f76acdc1aa0)) (Token id:Id.Lit_Slash length:1 col:6 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Chars length:2 col:7 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Colon length:1 col:9 line:...0x7f76acdc1aa0) (word_part.TildeSub left: (Token id:Id.Lit_Tilde length:1 col:10 line:...0x7f76acdc1aa0) name: (Token id:Id.Lit_Chars length:4 col:11 line:...0x7f76acdc1aa0) user_name: andy ) (Token id:Id.Lit_Colon length:1 col:15 line:...0x7f76acdc1aa0) (word_part.TildeSub left: (Token id:Id.Lit_Tilde length:1 col:16 line:...0x7f76acdc1aa0) name: (Token id:Id.Lit_Chars length:4 col:17 line:...0x7f76acdc1aa0) user_name: andy ) (Token id:Id.Lit_Slash length:1 col:21 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Colon length:1 col:22 line:...0x7f76acdc1aa0) (word_part.TildeSub left: (Token id:Id.Lit_Tilde length:1 col:23 line:...0x7f76acdc1aa0) name: (Token id:Id.Lit_Chars length:4 col:24 line:...0x7f76acdc1aa0) user_name: andy ) (Token id:Id.Lit_Slash length:1 col:28 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Chars length:2 col:29 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Colon length:1 col:31 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Tilde length:1 col:32 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Chars length:3 col:33 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Pound length:1 col:36 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Colon length:1 col:37 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Tilde length:1 col:38 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Chars length:3 col:39 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Pound length:1 col:42 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Slash length:1 col:43 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Colon length:1 col:44 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Tilde length:1 col:45 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Chars length:3 col:46 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Pound length:1 col:49 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Slash length:1 col:50 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Chars length:2 col:51 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Colon length:1 col:53 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Colon length:1 col:54 line:...0x7f76acdc1aa0) (Token id:Id.Lit_Chars length:3 col:55 line:...0x7f76acdc1aa0) ] )