Re: bash: syntax error near unexpected token

2010-08-17 Thread Hans Mulder
Benjamin Kaplan wrote: On Mon, Aug 16, 2010 at 11:33 PM, kreglet wrote: desktop:~/bin$ modtest.py desktop:~/bin$ evenodd(45) bash: syntax error near unexpected token `45' And this is what's supposed to happen any time you try this in any shell. When you call evenodd, bash l

Re: bash: syntax error near unexpected token

2010-08-16 Thread Benjamin Kaplan
l, but not arbitrary Python functions. Perhaps you were calling Python using the -i flag, which runs the interactive interpreter after the script is finished executing. $ python -i modtest.py >>> evenodd(45) 45 is odd > Now: > desktop:~/bin$ modtest.py > desktop:~/bin$ evenod

bash: syntax error near unexpected token

2010-08-16 Thread kreglet
ction to test if an int is even or odd. Before: desktop:~/bin$ modtest.py desktop:~/bin$ evenodd(45) 45 is odd Now: desktop:~/bin$ modtest.py desktop:~/bin$ evenodd(45) bash: syntax error near unexpected token `45' The above is just an example. ALL of my scripts that worked before no longer w