sh: test: argument expected

Iván Cabria cabria at fta.uva.es
Fri Nov 5 16:11:34 EST 2004


Hi,   
   
I have run the script using "python scriptname.py" and the error does    
not go away. I got the same error: 
 
sh: test: argument expected 
   
 
I have checked again that the first line of the python script is   
#!/usr/bin/env python   
   
There are no blank lines or empty spaces before    
#!/usr/bin/env python   
   
  
I also did "grep loginname /etc/passwd" to confirm I was using bash, and the  
line I got ended with   
   
:/usr/bin/bash   
  
  
  
   
Iván 





More information about the Python-list mailing list