Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 62086
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo X packagers <x11@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Carlo von Loesch <lynx@dont.bug.me.and.my.gentoo.pages.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 62086 depends on: Show dependency tree
Bug 62086 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-08-29 04:17 0000
When the .xinitrc has mode +x, xinit will traditionally exec the script rather
than launch /bin/sh on it. So you can use perl or in my case a #!/bin/tcsh
with the purpose of having all my tcsh environment variables properly set up
for all X applications.

With the current /etc/X11/xinit/xinitrc this feature is broken.


Reproducible: Always
Steps to Reproduce:
1. put #!/usr/bin/perl in your .xinitrc
2. xinit

Actual Results:  
syntax errors because /bin/sh cannot parse perl


I changed /etc/X11/xinit/xinitrc like this, and thus fixed the bug:


if [ -f "$HOME/.xinitrc" ]; then
        XINITRC="$HOME/.xinitrc"
        if [ -e $XINITRC ]; then
                # if the x bit is set on .xinitrc
                # it means the xinitrc is not a
                # shell script but something else
                exec $XINITRC
        fi
        exec /bin/sh $XINITRC
# If not present, try the system default
...

------- Comment #1 From Donnie Berkholz 2006-04-19 22:30:45 0000 -------
Fixed, finally! In xinit-1.0.2-r1.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug