(C {(echo)} {(hi)}) (command.Simple words: [ (word.Compound parts:[(word_part.Literal token:(token id:Lit_Chars val:echo span_id:0))]) (word.Compound parts:[(word_part.Literal token:(token id:Lit_Chars val:hi span_id:2))]) ] ) oil AST
(C {(echo)} {(hi)})
    
oil AST
(command.Simple
  words: [
    (word.Compound parts:[(word_part.Literal token:(token id:Lit_Chars val:echo span_id:0))])
    (word.Compound parts:[(word_part.Literal token:(token id:Lit_Chars val:hi span_id:2))])
  ]
)
    
OK ast-formats ===== Hello hi inside func in subshell another ComSub ===== EMPTY ===== NO TRAILING NEWLINE hi OK osh-file hi inside func in subshell another ComSub ComSub ===== EMPTY ===== NO TRAILING NEWLINE hi hi line continuation two here doc command sub OK osh-stdin shopt -s globstar # long overdue, try out wc -l **/*.py ^~~~~ /home/andy/git/dotfiles//interactive.bash:23: 'shopt' got invalid option 'globstar' [osh] lisa ~/git/oilshell/oil$ hi [osh] lisa ~/git/oilshell/oil$ ^D shopt -s globstar # long overdue, try out wc -l **/*.py ^~~~~ /home/andy/git/dotfiles//interactive.bash:23: 'shopt' got invalid option 'globstar' [osh] lisa ~/git/oilshell/oil$ shopt -s globstar # long overdue, try out wc -l **/*.py ^~~~~ /home/andy/git/dotfiles//interactive.bash:23: 'shopt' got invalid option 'globstar' ; ^ [ stdin -i ]:1: Invalid word while parsing command [osh] lisa ~/git/oilshell/oil$ [osh] lisa ~/git/oilshell/oil$ ^D shopt -s globstar # long overdue, try out wc -l **/*.py ^~~~~ /home/andy/git/dotfiles//interactive.bash:23: 'shopt' got invalid option 'globstar' ;echo OIL OIL ^ [ stdin -i ]:1: Invalid word while parsing command [osh] lisa ~/git/oilshell/oil$ [osh] lisa ~/git/oilshell/oil$ ^D shopt -s globstar # long overdue, try out wc -l **/*.py ^~~~~ /home/andy/git/dotfiles//interactive.bash:23: 'shopt' got invalid option 'globstar' echo " ^ [ backticks at ... ]:1: Unexpected EOF reading double-quoted string that began here [osh] lisa ~/git/oilshell/oil$ [osh] lisa ~/git/oilshell/oil$ ^D OK osh-interactive shopt -s globstar # long overdue, try out wc -l **/*.py ^~~~~ /home/andy/git/dotfiles//interactive.bash:23: 'shopt' got invalid option 'globstar' [osh] lisa ~/git/oilshell/oil$ one OK exit-builtin-interactive TESTRC$ ^D osh$ ^D OK rc-file OK help echo; echo; | ^ [ -c flag ]:1: Invalid word while parsing command _tmp/osh-usage-noexec.txt appears empty, as expected OK noexec-fails-properly Oil version 0.7.pre3 Release Date: - Arch: x86_64 OS: Linux Platform: #46~16.04.1-Ubuntu SMP Thu May 3 10:06:43 UTC 2018 Compiler: GCC 5.4.0 20160609 Interpreter: CPython Interpreter version: 2.7.12 Bytecode: - OK version All test/osh-usage.sh tests passed.