[Nix-dev] bash-completion breaks X session startup

Eelco Dolstra eelco.dolstra at logicblox.com
Mon Sep 9 12:15:39 CEST 2013


Hi,

On 09/09/13 12:05, Pablo Costa wrote:

> This is the contents of ~/.xsession-errors after the failed login:
> 
> /run/current-system/sw/share/bash-completion/completions/journalctl: line 80:
> syntax error near unexpected token `<'
> /run/current-system/sw/share/bash-completion/completions/journalctl: line 80: `
>                mapfile -t field_vals < <(journalctl -F "${prev%=}" 2>/dev/null)'
> /nix/store/77x98szy10bflysvlxb25mpldsvmjjhd-xsession failed with error code 2.

Bash completion is initialised in /etc/bashrc, which should only be read by
interactive shells.  Maybe you're sourcing it from your ~/.xsession script?

Also, Bash's process substitution feature ("<(...)") is not available when Bash
is invoked as "sh".  So you may not want to use "#! /bin/sh" for ~/.xsession.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list