Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
L
lxc
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • lxc
  • Repository

Switch branch/tag
  • lxc
  • config
  • bash
  • lxc.in
Find file
BlameHistoryPermalink
  • Lucas Werkmeister's avatar
    Use POSIX-compliant function names in bash completion · ea26a2c9
    Lucas Werkmeister authored May 14, 2015
    When running in posix mode (for example, because it was invoked as `sh`,
    or with the --posix option), bash rejects the function names previously
    used because they contain hyphens, which are not legal POSIX names, and
    exits immediately.
    
    This is a particularly serious problem on a system in which the
    following three conditions hold:
    
    1. The `sh` executable is provided by bash, e. g. via a symlink
    2. Gnome Display Manager is used to launch X sessions
    3. Bash completion is loaded in the (system or user) profile file
       instead of in the bashrc file
    
    In that case, GDM's Xsession script (run with `sh`, i. e., bash in posix
    mode) sources the profile files, thus causing the shell to load the bash
    completion files. Upon encountering the non-POSIX-compliant function
    names, bash would then exit, immediately ending the X session.
    
    Fixes #521.
    Signed-off-by: 's avatarLucas Werkmeister <mail@lucaswerkmeister.de>
    ea26a2c9
lxc.in 2.36 KB
EditWeb IDE
×

Replace lxc.in

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.