From owner-freebsd-questions@FreeBSD.ORG Mon Jun 10 11:56:53 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 738D5845 for ; Mon, 10 Jun 2013 11:56:53 +0000 (UTC) (envelope-from david@code.davidpcaldwell.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 4A5411130 for ; Mon, 10 Jun 2013 11:56:52 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so1437952iec.27 for ; Mon, 10 Jun 2013 04:56:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=pCPqPgcCqIkkKQaWL731lv6qOGYAaQ5FZhoMReVgvp4=; b=MdjOlZp153UtxEMNpgNo1yRE6drUAYbvSx2yiM4IE+MXOg1pTBMAcgAldPayyPzSsq oIXJ/c02PpvctXhlPmPGoqGDAGGtrb8j0k/EEAqHBOfJ3kvVdjwEWK3rLrBK9wDvPujp OZPXQqIhSzqqWG9qytaNN1q+2/NVY0xyC9fg0QX7yHSt/pcMmmaXzSVU7cSNZKr/MCrn QtneL+CrqhaoxIwbEsqpIprFx9jaCNgBZnUvyT/VIrfbwJfKLGg6nndIHu7frOFDJFQl 70Lz95ylijPJ97R7JeBtADiTtpE16b4BZ+fUkHg6EBn4IS3L6YJr5rCanpgU+t3JhCSZ G5Mw== X-Received: by 10.50.67.10 with SMTP id j10mr3858642igt.70.1370865412584; Mon, 10 Jun 2013 04:56:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.24.166 with HTTP; Mon, 10 Jun 2013 04:56:32 -0700 (PDT) X-Originating-IP: [12.217.80.234] From: "David P. Caldwell" Date: Mon, 10 Jun 2013 07:56:32 -0400 Message-ID: Subject: With fresh 9.1 install, bash completion no longer expands "$HOME" To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnP1ho5qo9lOIDKHbghWmg/4yR/fp21+CFpoxJm4g6uZf27+XTsbriLvYZg//+hURaTjUYI X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jun 2013 11:56:53 -0000 On my 9.0-based machines, if I typed $HOME[tab] when typing a command in bash, the $HOME would be overwritten by the actual path to my home directory (the value of $HOME) and tab completion would work as expected. After a fresh 9.1 install, this does not work as well. $HOME is still detected by completion, but it is not expanded after pressing tab (this does not matter to me), but also an extra space is inserted after tab. For example, if I have a directory named src under my home directory, and my working directory is an unrelated directory, and I type cd $HOME/sr[tab]: Under 9.0: cd /home/dcaldwell/src/[cursor] Under 9.1: cd $HOME/src [cursor] So under 9.1 I lose the slash and see a space instead, essentially, which renders this not very useful. If I use ~ rather than $HOME, it works correctly under both. Obviously I could probably learn to type ~ rather than $HOME but it would be a hard habit to break after years. :) For bash (and for most software) I am using binary packages from the -release distribution, so my 9.0 machines have 4.1.11 and my 9.1 machines have 4.2.37. I don't know enough about all the moving parts to know where to start tracking this down, so can someone point me in the right direction? (Unless there's an known problem or change I'm missing.) I can't figure out where completion is configured in bash outside the /usr/local/etc/bash_completion.d/ directory, which incidentally on my 9.1 setup contains: $ ls /usr/local/etc/bash_completion.d/ dbus-bash-completion.sh* gdbus-bash-completion.sh* gsettings-bash-completion.sh* Thanks, -- David Caldwell http://www.davidpcaldwell.com/