On 27/06/09 Stephen Gregory said:
> Is your .xsession an executable? e.g. chmod u+x .xsession.
It's executable. Regardless, the issue would seem to be a posix shell vs. bash
thing.
msoulier@kostya:/home/msoulier$ cat try.sh
#!/bin/sh
hello-there()
{
echo "hello"
}
hello-there
msoulier@kostya:/home/msoulier$ sh try.sh
try.sh: 3: Syntax error: Bad function name
msoulier@kostya:/home/msoulier$ bash try.sh
hello
Mike
--
Michael P. Soulier <msoulier [ at ] digitaltorque [ dot ] ca>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein
Attachment:
signature.asc
Description: Digital signature