View Single Post
Old 10-18-2006   #8 (permalink)
Bruce Payette [MSFT]


 
 

Re: tab and variable

Correct - the tab completion code for filenames isn't expanding variables in
paths. It is possible to modify the TabCompletion function to do this with
some work. Tab-completion in V1 is very much a glass-half full experience
:-)

-bruce

--
Bruce Payette [MSFT]
Windows PowerShell Technical Lead
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
Visit the Windows PowerShell Team blog at:
http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at:
http://www.microsoft.com/technet/scr.../hubs/msh.mspx
My book: http://manning.com/powershell


"Sung M Kim" <DontBotherMeWithSpam@gmail.com> wrote in message
news:1161104935.391170.273890@i42g2000cwa.googlegroups.com...
> hn wrote:
>> not really answer to my question, my question is why
>> $pshome\..\
>> does not expand to
>> c:\windows\system32\windowspowershell\

>
> It is because expanding the "value" of parameter is not implemented in
> the TabExpanion function( located in function:TabExpansion, and to see
> the definition of the function try, (ls
> function:TabExpansion).definition ).
>



My System SpecsSystem Spec