After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770363 - gnome-session returns syntax error: bad fd number
gnome-session returns syntax error: bad fd number
Status: RESOLVED FIXED
Product: gnome-session
Classification: Core
Component: gnome-session
git master
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-08-25 01:47 UTC by bluescreen_avenger
Modified: 2016-08-25 16:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-session: drop bashism from shell script (1.12 KB, patch)
2016-08-25 16:57 UTC, Ray Strode [halfline]
committed Details | Review

Description bluescreen_avenger 2016-08-25 01:47:48 UTC
I only found Bug#835289 reported against Debian itself as the only recent result

It seems it was caused by 4abdb7925c3bf91e0802e42bab6c90d9a3086b2e
Another result in Google from 2008 is that this error can happen in the dash shell which Ubuntu (and I guess debian as well) uses in replacement for sh
Comment 1 bluescreen_avenger 2016-08-25 02:05:18 UTC
forgot to mention, changing the shell to bash allows the gnome-session to run normally
Comment 2 bluescreen_avenger 2016-08-25 02:09:52 UTC
Might need to change the line to 
dbus-update-activation-environment --all /dev/null 2>/dev/null ||:
Comment 3 Ray Strode [halfline] 2016-08-25 16:57:02 UTC
The following fix has been pushed:
08125ed gnome-session: drop bashism from shell script
Comment 4 Ray Strode [halfline] 2016-08-25 16:57:06 UTC
Created attachment 334159 [details] [review]
gnome-session: drop bashism from shell script

Apparently dash doesn't support >& and some people use dash.

This commit changes it to the more wordy form > ... 2>&1 .