-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path1069.ps1
More file actions
29 lines (26 loc) · 1.64 KB
/
Copy path1069.ps1
File metadata and controls
29 lines (26 loc) · 1.64 KB
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
# I want do demonstrate a Compare-object bug
# Bernd Kriszio - http://pauerschell.blogspot.com/
1, 2, 3, 4, 5 > .\textfile_a.txt
1, 2, 4, 5, 6 > .\textfile_b.txt
cat .\textfile_a.txt
cat .\textfile_b.txt
compare-object (gc .\textfile_a.txt) (gc .\textfile_b.txt) -inc
<#yields
InputObject SideIndicator
----------- -------------
1 ==
2 ==
4 ==
5 ==
6 =>
3 <=
I think it has to be
InputObject SideIndicator
----------- -------------
1 ==
2 ==
3 <=
4 ==
5 ==
6 =>
#>