trentm / go-tool

Automatically exported from code.google.com/p/go-tool
Other
10 stars 8 forks source link

go function in .profile on Ubuntu breaks X11 login #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install go
2. add go function to .profile instead of .bashrc
3. log out of X11 session, then back in

What is the expected output? What do you see instead?

This was logged in .xsession-errors:

/home/jeffg/.profile: 35: function: not found
go: error: Unrecognized shortcut: ''gnome-session''
/home/jeffg/.profile: 40: source: not found
/home/jeffg/.profile: 42: Syntax error: "}" unexpected

The problem is .profile is loaded in /bin/sh, not bash, so the bash
function syntax isn't supported. 

What version of the product are you using? On what operating system?

latest svn on Ubuntu 9.10

Original issue reported on code.google.com by anisotropic on 22 Oct 2009 at 5:05

GoogleCodeExporter commented 9 years ago
Just experienced same issue on Ubuntu 12.4 !
For me, it's a defect that prevents me from using go-tool!

Original comment by patrick....@gmail.com on 12 Feb 2013 at 12:54