Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: $( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0



On Jan 14, 10:19am, Sebastian Gniazdowski wrote:
} Subject: $( <Tab> has CURRENT=1, $(( <Tab> has CURRENT=0
}
} in both cases words array is empty, so CURRENT=0 seems to be more
} logical value. Maybe something bigger is hidden behind this.

CURRENT=1 indicates the completion is in command position, even if there
is no command present yet.  The command name is always the "first word"
even if that is so far an empty word.

CURRENT=0 only makes sense in contexts where there is no command position
at all.



Messages sorted by: Reverse Date, Date, Thread, Author