Code: Select all
#!/usr/bin/bash
ls -l `which bash`
export x=foobar
After googling a bit I learned that the "is not an identifier" error is due to sh not supporting the 'export varname=value' syntax. So in my case it seems that the 1st line invoking bash is not considered.+ /bin/sh -x /tmp/INSTREAM_02522_0003_testskat
+ which bash
+ ls -l /usr/bin/bash
-r-xr-xr-x 1 root bin 732556 May 2 2007 /usr/bin/bash
+ export x=foobar
/tmp/INSTREAM_02522_0003_testskat: x=foobar: is not an identifier
Does anyone have an explanation?
Thanks