sh: test: argument expected and os.environ

I

Iván Cabria

Hi,

thanks to Jeff Epler for the answer.

I have tried his suggestion and I have added two lines after the
first line in the python script:
import os
os.environ['SHELL'] = "/bin/bash"


The first three lines of the python script are now:
#!/usr/bin/env python
import os
os.environ['SHELL'] = "/bin/bash"


I have run the script and I have got the same message error than before:
sh: test: argument expected



Iván
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top