New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding sha-bang #3848

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@moaxcp

moaxcp commented Aug 29, 2015

I am not sure why but adding shell completion to my /etc/profile.d broke xdm when starting. By placing sha-bang in the script, I was able to avoid this

 * Caching service dependencies ...                  [ ok ]                 
 * Stopping xdm ...                                                         
 * start-stop-daemon: no matching processes found    [ ok ]                 
 * Setting up xdm ...                                                       
    /opt/spring-1.2.5.RELEASE/shell-completion/bash/spring: line 16: syntax error near unexpected token `<'
    /opt/spring-1.2.5.RELEASE/shell-completion/bash/spring: line 16: `      done < <(spring hint ${cword} ${words[*] [ ok ]

And now my computer starts xdm normally.

adding sha-bang
I am not sure why but adding shell completion to my /etc/profile.d broke xdm when starting. By placing sha-bang in the script, I was able to avoid this

     * Caching service dependencies ...                  [ ok ]                 
     * Stopping xdm ...                                                         
     * start-stop-daemon: no matching processes found    [ ok ]                 
     * Setting up xdm ...                                                       
        /opt/spring-1.2.5.RELEASE/shell-completion/bash/spring: line 16: syntax error near unexpected token `<'
        /opt/spring-1.2.5.RELEASE/shell-completion/bash/spring: line 16: `      done < <(spring hint ${cword} ${words[*] [ ok ]

And now my computer starts xdm normally.

@philwebb philwebb added this to the 1.2.6 milestone Sep 5, 2015

@philwebb

This comment has been minimized.

Show comment
Hide comment
@philwebb

philwebb Sep 5, 2015

Member

I didn't think this was required but it does look like other scripts do the same.

The script should go in bash-completion.d see the docs and not profile.d.

Member

philwebb commented Sep 5, 2015

I didn't think this was required but it does look like other scripts do the same.

The script should go in bash-completion.d see the docs and not profile.d.

@moaxcp

This comment has been minimized.

Show comment
Hide comment
@moaxcp

moaxcp Sep 9, 2015

Sorry I didn't have bash-completion on my gentoo system. I have it installed now.

moaxcp commented Sep 9, 2015

Sorry I didn't have bash-completion on my gentoo system. I have it installed now.

@philwebb philwebb removed this from the 1.2.6 milestone Sep 10, 2015

@philwebb philwebb closed this Sep 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment