Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Tab Completion oddity

Reply
 
Old 06-19-2006   #1 (permalink)
Andrew Watt [MVP]


 
 

Tab Completion oddity

This is an oddity that I came across when playing with the `n issue I
posted about yesterday. I have called it "tab completion" since that
is what it appears to be.

Create a file ABC.txt in the current working directory.

Type a command
"ABC"
and make sure that the cursor is after the second quote.

Press Tab

The text inside the quotes changes to
ABC.txt
which I didn't expect.

Is this the intended behaviour?

Andrew Watt MVP

My System SpecsSystem Spec
Old 06-19-2006   #2 (permalink)
DBMwS


 
 

RE: Tab Completion oddity

May I ask what the intended behavior you were expecting, though?

"Andrew Watt [MVP]" wrote:

> This is an oddity that I came across when playing with the `n issue I
> posted about yesterday. I have called it "tab completion" since that
> is what it appears to be.
>
> Create a file ABC.txt in the current working directory.
>
> Type a command
> "ABC"
> and make sure that the cursor is after the second quote.
>
> Press Tab
>
> The text inside the quotes changes to
> ABC.txt
> which I didn't expect.
>
> Is this the intended behaviour?
>
> Andrew Watt MVP
>

My System SpecsSystem Spec
Old 06-19-2006   #3 (permalink)
Wei Wu [MSFT]


 
 

Re: Tab Completion oddity

This is intended behavior. If a path contains space, it has to be single or
double quoted.
When you do a tab completion after "ABC", "ABC" is considered as part of a
relative path from the current working directory.

--
Wei Wu [MSFT]
Windows PowerShell Team
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.


"Andrew Watt [MVP]" <SVGDeveloper@aol.com> wrote in message
newsltc92lo56oa3d7v95or5f4th3fp9agid3@4ax.com...
> This is an oddity that I came across when playing with the `n issue I
> posted about yesterday. I have called it "tab completion" since that
> is what it appears to be.
>
> Create a file ABC.txt in the current working directory.
>
> Type a command
> "ABC"
> and make sure that the cursor is after the second quote.
>
> Press Tab
>
> The text inside the quotes changes to
> ABC.txt
> which I didn't expect.
>
> Is this the intended behaviour?
>
> Andrew Watt MVP



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Desktop Oddity Vista security
Subst oddity with UAC Vista file management
File sharing oddity Vista networking & sharing
RTM DVD oddity Vista hardware & devices
trapping oddity PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46