bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug, or someone wanna explain to me why this is a POSIX feature?


From: Michael Witten
Subject: Re: Bug, or someone wanna explain to me why this is a POSIX feature?
Date: Mon, 8 Aug 2011 18:57:33 +0000

On Mon, Aug 8, 2011 at 18:44, Linda Walsh <bash@tlinx.org> wrote:
>
> I was testing functions in my shell,  I would cut/paste,
> thing is, with each past, I'd get my dir listed (sometimes multiple times)
> on each line entered.
>
> Now I have:
> shopt:
> no_empty_cmd_completion on
>
> i.e. it's not supposed to expand an empty line
>
> but type in
> function foo {
> <tab>return 1
> }
> ----
> When I hit tab it lists out all the files in my dir -- which
> explains why when I cut/paste, any tab-indented line will list
> out the dir, and if it is multiply indented, it will be listed
> once for each indent level!
>
> Now I'm sure someone will come up and tell me how POSIX this or that.
> But maybe POSIX needs to be retired if this is some required feature!
>
> When I tell it not to complete an empty line, and hit tab at the
> beginning of a line -- even inside a function def, I don't need my
> dir listed!
>
> So is this a bug, or can we retire POSIX??
>
> running bash  4.1.10(1)-release (x86_64-suse-linux-gnu)
> (released version in Suse 11.4).

Don't use tab characters on the interactive command line.

I'm not sure what you're mumbling about POSIX.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]