Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: autocomplete directory ends with whitespace

  1. #1
    Join Date
    Nov 2006
    Beans
    25
    Distro
    Ubuntu 10.04 Lucid Lynx

    autocomplete directory ends with whitespace

    Hi,

    on the commandline when I use autocomplete to enter a directory name a whitespace is added at the end of the directory name. This is annoying because in most cases you want to continue into another directory. If I remember correct this used to be different some months/years ago.

    (Why )has this changed?
    How can I return to the old-fashioned autocomplete?

  2. #2
    Join Date
    Apr 2009
    Beans
    250
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: autocomplete directory ends with whitespace

    I've come across this problem as well (in Xubuntu 11.10).

    But it doesn't always do it. I haven't had the time to work out in which situations it does this, but I'll make a point of posting any findings here.

  3. #3
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: autocomplete directory ends with whitespace

    Surely the whitespace is only added when you get to the end of a pathway. If there are subfolders and/or files in the folder you enter with autocomplete, or it is an empty folder, there is no whitespace. As far as I can make out the whitespace only appears when you start the name of a file, never a folder.

    That is certainly the case in my installation of 10.04.

    So autocomplete will add a forward slash with no whitespace to a folder name that is autocompleted, but will always add a space after an autocompleted filename so you can add further files if you want.
    Last edited by ajgreeny; March 19th, 2012 at 11:27 AM.

  4. #4
    Join Date
    Apr 2009
    Beans
    250
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: autocomplete directory ends with whitespace

    I tried out a few commands:

    Commands that produce a blank at the end of the autocomplete and no slash when directory:

    Code:
    cp
    mv
    ls
    less
    diff
    rm
    Commands that work as expected (no blank and end in slash if in a directory):

    Code:
    cd
    more
    chmod
    Last edited by texpat; March 23rd, 2012 at 04:53 PM. Reason: added some more commands

  5. #5
    Join Date
    Apr 2009
    Beans
    250
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: autocomplete directory ends with whitespace

    OK, so no-one else has seen this? This is really quite a hassle, so any input at all would be appreciated.

    Thanks for reading

  6. #6
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,261
    Distro
    Ubuntu

    Re: autocomplete directory ends with whitespace

    @texpat:

    I get the same as ajgreeny: white space after files, slash after directories. (I have tested this on gnome-terminal on 11.04 and 12.04, and on the TTY console on 11.04.)

    This is normal and expected behaviour. Your behaviour is unexpected, i.e. being different between commands. Which terminal emulator are you using, on which system?
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

  7. #7
    Join Date
    Apr 2009
    Beans
    250
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: autocomplete directory ends with whitespace

    I'm on Xubuntu 11.10. Selecting 'About' in the terminal's 'Help' menu gives me:

    Terminal 0.4.8
    Xfce Terminal Emulator

    As far as 'shell' is concerned, it runs in bash. Calling Xterm from the bash shell gives me a separate window that runs Xterm. The auto-complete behavior, however, is the same as described above.
    Last edited by texpat; March 24th, 2012 at 12:06 AM.

  8. #8
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,261
    Distro
    Ubuntu

    Re: autocomplete directory ends with whitespace

    Well, that's interesting.

    For me, both xterm and xfce4-terminal give the expected behaviour.

    I have tested xfce4-terminal versions 0.4.7 (Natty) and 0.4.8 (Precise). Puzzling indeed!
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

  9. #9
    Join Date
    Apr 2009
    Beans
    250
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: autocomplete directory ends with whitespace

    Quote Originally Posted by Paddy Landau View Post
    Well, that's interesting.

    snip..

    Puzzling indeed!
    Oh dear, now I'm really worried

  10. #10
    Join Date
    Jan 2010
    Beans
    3

    Re: autocomplete directory ends with whitespace

    I'm getting the same problem as texpat, anybody have a fix for this?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •