History log of /lxc/config/bash/lxc.in
Revision Date Author Comments Expand
d0a6bd39400a6d14cfec94ad647f3af1bda1e321 24-Feb-2016 Christian Brauner <christian.brauner@mailbox.org>

configure.ac: add --enable-deprecated flag - lxc-clone and lxc-start-ephemeral are marked deprecated. We add a --enable-deprecated flag to configure.ac allowing us to enable these deprecated executables - update tests to use lxc-copy instead of lxc-clone Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>

3db8dd39a797f87f8b348f1b6b44953a25f3f170 11-Jan-2016 Peter Simons <simons@cryp.to>

bash completion: the 'have' command was deprecated in favor of '_have' `bash-completion` version 2.1 and later no longer include the `have` command, and consequently the `lxc` competion file fails on such systems. The command is now called `_have`. Signed-off-by: Peter Simons <simons@cryp.to>

e0bc1067693e30644f60071f0fc861a84fb3fbb6 14-May-2015 Lucas Werkmeister <mail@lucaswerkmeister.de>

Use POSIX-compliant function names in bash completion 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: Lucas Werkmeister <mail@lucaswerkmeister.de>

c18d419f7c725f9073454f996a3fb51365cf925a 03-Mar-2014 Johannes Kastl <git@ojkastl.de>

removed shebang from bash_completion-file Signed-off-by: Johannes Kastl <git@ojkastl.de> Acked-by: Stéphane Graber <stgraber@ubuntu.com>

0306de4f280adc0cd5faa3cd365c584d61c9e383 22-Jan-2014 Stéphane Graber <stgraber@ubuntu.com>

Add bash auto completion This adds a basic bash auto-completion profile. It supports 3 things at this time: - Auto-complete of container name (-n or -o) - Auto-complete of template name (-t) - Auto-complete of state names (-s) It's configured in a way to be as little disruptive as possible, any argument that's not explicitly handled by the profile will fallack to bash's default completion. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>