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.

msoul...@kostya:/home/msoulier$ cat try.sh 
#!/bin/sh

hello-there()
{
    echo "hello"
}

hello-there
msoul...@kostya:/home/msoulier$ sh try.sh 
try.sh: 3: Syntax error: Bad function name
msoul...@kostya:/home/msoulier$ bash try.sh 
hello

Mike
-- 
Michael P. Soulier <[email protected]>
"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

_______________________________________________
Linux mailing list
[email protected]
http://oclug.on.ca/mailman/listinfo/linux

Reply via email to