Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8176107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:02:19+00:00 2026-06-06T23:02:19+00:00

under Debians BASH I can do the following: foo=/path/to/some/file cat $f[TAB] As you can

  • 0

under Debians BASH I can do the following:

foo=/path/to/some/file

cat $f[TAB]

As you can see, I can autocomplete the variable $foo by pressing TAB.

Under Ubuntu (11) the behaviour is not the same (I’ve activated ‘/etc/bash_completion’ in my bashrc).

This is working:

echo $f[TAB]

This one is not working:

cat $f[TAB]

Can anyone give me a hint, how to get the last one working?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:02:21+00:00Added an answer on June 6, 2026 at 11:02 pm

    You can remove the completion specification provided for cat by /etc/bash_completion by doing:

    complete -r cat
    

    or you can see if modifying the completion options provided in /etc/bash_completion work in the version of Bash you’re using:

    complete -F _longopt -o filenames -o bashdefault cat
    

    If you’re using the latest patched version of Bash 4.2, there is an option that may help (I haven’t tried it):

    shopt -s direxpand
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Under Windows 7 I have a batch file for checking the status of some
Under MacOSX, I can create a file under root (/) without having admin rights.
Under the .NET Compact Framework, there is no FormWindowState.Minimize value. How can I minimize
Under what exact circumstances do @SessionAttributes get cleared? I've discovered some confusing behaviour when
I need help again with some regular expressions I'm trying to do (still under
I'm repackaging some software (which has its own installer) for private use under a
I'm starting with assembler under Linux. I have saved the following code as testasm.c
Under vs10 msbuild.exe how can a specific project within a solution.sln be Ignored? I
Under what conditions will lintian throw error unknown-control-file ? the package is being created
Under Asynchronous Javascript , the capybara README gives the following example of something that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.