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 - Get-Command -Usage should not display empty lines

Reply
 
Old 07-22-2006   #1 (permalink)
=?Utf-8?B?ZGFuY2UyZGll?=


 
 

Get-Command -Usage should not display empty lines

When you do "get-command -Usage <cmdlet|alias>", for "cmdlet", it displays
two empty lines before the next prompt while for "alias", there is none.

The behavior is inconsistent and empty lines reduces redability(as well as
copying from Console would require one to modify it to reduce vertical space)

Here is the way to reproduce the behavior
==============================
# For an alias "ls", no newline character before the next prompt.
[^_^]PS[1]>gcm -Usage ls
Get-ChildItem
[^_^]PS[2]>gcm -Usage Get-ChildItem
Get-ChildItem [[-Path] <String[]>] [[-Filter] <String>] [-Include
<String[]>] [
-Exclude <String[]>] [-Recurse] [-Force] [-Verbose] [-Debug] [-ErrorAction
<Act
ionPreference>] [-ErrorVariable <String>] [-OutVariable <String>]
[-OutBuffer <
Int32>]
Get-ChildItem [[-Path] <String[]>] [[-Filter] <String>] [-Include
<String[]>] [
-Exclude <String[]>] [-Recurse] [-Force] [-Name] [-Verbose] [-Debug]
[-ErrorAct
ion <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>]
[-Out
Buffer <Int32>]


[^_^]PS[3]>
==============================

As you can see, before the 3rd prompt, there are two blank spaces.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/communities...ows.powershell

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Pink Lines Through Display Picture Live Messenger
DISPLAY ERROR - LINES (ATI RADEON X1600) Vista hardware & devices
file folder icons display non-empty folders as empty Vista file management
Redirection of stdout adding lots of empty lines PowerShell
Huge yellow lines on my display???? Vista General


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