Home Dashboard Directory Help
Search

Misleading result in about_split help topic by Shay Levi


Status: 

Active


3
0
Sign in
to vote
Type: Bug
ID: 791565
Opened: 6/28/2013 5:30:47 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description




The result of the commands executed in the 'UNARY and BINARY SPLIT OPERATORS' section are incorrect (extra leading space in some of them).

-split "1 2", "a b"
# in help
1
2
[space]a b

# actual result
1
2
a b

"1 2", "a b" -split " "
# in help
1
2
[space]a
b

# actual result
1
2
a b

-split ("1 2", "a b")
# in help
1
2
[space]a
b


# actual result
1
2
a
b


$a = "1 2", "a b"
-split $a
# in help
1
2
[space]a
b

# actual result
1
2
a
b
Details
Sign in to post a comment.
Sign in to post a workaround.