functions.txt functions-err.txt functions-AST.txt
 Traceback (most recent call last): File "bin/osh", line 374, in  sys.exit(main(sys.argv)) File "bin/osh", line 364, in main return OshMain(main_argv) File "bin/osh", line 282, in OshMain node = c_parser.ParseWholeFile() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1484, in ParseWholeFile node = self.ParseCommandTerm() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1389, in ParseCommandTerm and_or = self.ParseAndOr() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1265, in ParseAndOr left = self.ParsePipeline() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1201, in ParsePipeline child = self.ParseCommand() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1181, in ParseCommand return self.ParseFunctionDef() # f() { echo; } # function File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1039, in ParseFunctionDef if not self.ParseFunctionBody(func): File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 990, in ParseFunctionBody body = self.ParseCompoundCommand() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 965, in ParseCompoundCommand return self.ParseBraceGroup() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 635, in ParseBraceGroup node = self.ParseCommandList() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1462, in ParseCommandList node = self.ParseCommandTerm() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1389, in ParseCommandTerm and_or = self.ParseAndOr() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1265, in ParseAndOr left = self.ParsePipeline() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1201, in ParsePipeline child = self.ParseCommand() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1164, in ParseCommand node = self.ParseCompoundCommand() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 967, in ParseCompoundCommand return self.ParseSubshell() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1099, in ParseSubshell node = self.ParseCommandList() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1462, in ParseCommandList node = self.ParseCommandTerm() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1389, in ParseCommandTerm and_or = self.ParseAndOr() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1265, in ParseAndOr left = self.ParsePipeline() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1201, in ParsePipeline child = self.ParseCommand() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 1164, in ParseCommand node = self.ParseCompoundCommand() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 972, in ParseCompoundCommand return self.ParseWhile() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 790, in ParseWhile body_node = self.ParseDoGroup() File "/home/andy/git/oil/bin/../osh/cmd_parse.py", line 661, in ParseDoGroup assert len(node.spids) == 0 # might change later AssertionError