Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
---
ms.date: 11/27/2017
schema: 2.0.0
locale: en-us
keywords: powershell,cmdlet
title: about_Aliases
---

# About Aliases

## SHORT DESCRIPTION
Expand Down Expand Up @@ -148,7 +147,7 @@ Get-Alias returns only one type of object, an AliasInfo object
include a hyphen, such as "cd" are displayed in the following format:

```powershell
PS C:\> Get-Alias ac
PS> Get-Alias ac

CommandType Name Version Source
----------- ---- ------- ------
Expand Down Expand Up @@ -177,7 +176,7 @@ For example, the following command creates the syslog function. This function
represents the `Get-Eventlog -LogName System` command:

```powershell
function Get-SystemEventlog {Get-Eventlog -LogName System}
function Get-SystemEventlog {Get-EventLog -LogName System}
Set-Alias -Name syslog -Value Get-SystemEventlog
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
---
ms.date: 11/27/2017
schema: 2.0.0
locale: en-us
keywords: powershell,cmdlet
title: about_Arithmetic_Operators
---

# About Arithmetic Operators

## SHORT DESCRIPTION
Expand Down Expand Up @@ -364,7 +363,7 @@ The following examples show how to use the arithmetic operators in
expressions with PowerShell commands:

```powershell
(get-date) + (new-timespan -day 1)
(Get-Date) + (New-TimeSpan -Days 1)
```

The parenthesis operator forces the evaluation of the `get-date` cmdlet and
Expand Down Expand Up @@ -456,7 +455,7 @@ For example, the binary complement of 0 is -1, the maximum unsigned integer
(0xffffffff), and the binary complement of -1 is 0.

```powershell
PS C:\> -bNot 10
PS> -bNot 10
-11
```

Expand Down Expand Up @@ -509,11 +508,11 @@ right operand determine how many bits of the left operand are shifted.

## SEE ALSO

* [about_arrays](about_Arrays.md)
* [about_assignment_operators](about_Assignment_Operators.md)
* [about_comparison_operators](about_Comparison_Operators.md)
* [about_hash_tables](about_Hash_Tables.md)
* [about_operators](about_Operators.md)
* [about_variables](about_Variables.md)
* [Get-Date](../../Microsoft.PowerShell.Utility/Get-Date.md)
* [New-TimeSpan](../../Microsoft.PowerShell.Utility/New-TimeSpan.md)
- [about_arrays](about_Arrays.md)
- [about_assignment_operators](about_Assignment_Operators.md)
- [about_comparison_operators](about_Comparison_Operators.md)
- [about_hash_tables](about_Hash_Tables.md)
- [about_operators](about_Operators.md)
- [about_variables](about_Variables.md)
- [Get-Date](../../Microsoft.PowerShell.Utility/Get-Date.md)
- [New-TimeSpan](../../Microsoft.PowerShell.Utility/New-TimeSpan.md)
11 changes: 5 additions & 6 deletions reference/3.0/Microsoft.PowerShell.Core/About/about_Arrays.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
---
ms.date: 06/09/2017
schema: 2.0.0
locale: en-us
keywords: powershell,cmdlet
title: about_Arrays
---

# About Arrays

# SHORT DESCRIPTION
Expand Down Expand Up @@ -89,12 +88,12 @@ You can use the array operator to create an array of zero or one object. For
example:

```powershell
PS C:\> $a = @("Hello World")
PS C:\> $a.Count
PS> $a = @("Hello World")
PS> $a.Count
1

PS C:\> $b = @()
PS C:\> $b.Count
PS> $b = @()
PS> $b.Count
0
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
---
ms.date: 11/27/2017
schema: 2.0.0
keywords: powershell,cmdlet
title: about_Assignment_Operators
---

# About Assignment Operators

## SHORT DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
---
ms.date: 12/21/2017
schema: 2.0.0
locale: en-us
keywords: powershell,cmdlet
title: about_Automatic_Variables
---

# About Automatic Variables

## SHORT DESCRIPTION
Expand Down Expand Up @@ -286,13 +285,13 @@ profile in commands. For example, you can use it in a command to determine
whether a profile has been created:

```powershell
test-path $profile
Test-Path $profile
```

Or, you can use it in a command to create a profile:

```powershell
new-item -type file -path $pshome -force
New-Item -ItemType file -Path $pshome -Force
```

You can also use it in a command to open the profile in Notepad:
Expand Down Expand Up @@ -460,6 +459,7 @@ this variable can also be found in the Sender property of the PSEventArgs
Contains the identifier of the current shell.

### $STACKTRACE

Contains a stack trace for the most recent error.

### $THIS
Expand Down
3 changes: 1 addition & 2 deletions reference/3.0/Microsoft.PowerShell.Core/About/about_Break.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
---
ms.date: 06/09/2017
schema: 2.0.0
locale: en-us
keywords: powershell,cmdlet
title: about_Break
---

# About Break

## SHORT DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
---
ms.date: 06/27/2017
schema: 2.0.0
keywords: powershell,cmdlet
title: about_Command_Precedence
---

# About Command Precedence

## SHORT DESCRIPTION
Expand Down Expand Up @@ -210,7 +209,7 @@ For example, if you have a function named "Map" that is hidden by an alias
named "Map", use the following command to run the function.

```powershell
&(Get-Command -Name Map -Type Function)
&(Get-Command -Name Map -CommandType Function)
```

or
Expand All @@ -225,7 +224,7 @@ For example, the following command saves the "Map" function in the "$myMap"
variable and then uses the `Call` operator to run it.

```powershell
$myMap = (Get-Command -Name map -Type function)
$myMap = (Get-Command -Name map -CommandType function)
&($myMap)
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
---
ms.date: 06/27/2017
schema: 2.0.0
keywords: powershell,cmdlet
title: about_Command_Syntax
---

# About Command Syntax

# SHORT DESCRIPTION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
ms.date: 06/09/2017
schema: 2.0.0
keywords: powershell,cmdlet
Expand Down Expand Up @@ -515,17 +515,17 @@ or file name.

.EXAMPLE

C:\PS> extension -name "File"
PS> extension -name "File"
File.txt

.EXAMPLE

C:\PS> extension -name "File" -extension "doc"
PS> extension -name "File" -extension "doc"
File.doc

.EXAMPLE

C:\PS> extension "File" "doc"
PS> extension "File" "doc"
File.doc

.LINK
Expand Down Expand Up @@ -600,17 +600,17 @@ file name.

Example 1

C:\PS> extension -name "File"
PS> extension -name "File"
File.txt

Example 2

C:\PS> extension -name "File" -extension "doc"
PS> extension -name "File" -extension "doc"
File.doc

Example 3

C:\PS> extension "File" "doc"
PS> extension "File" "doc"
File.doc

RELATED LINKS
Expand Down Expand Up @@ -664,17 +664,17 @@ file name.

.EXAMPLE

C:\PS> extension -name "File"
PS> extension -name "File"
File.txt

.EXAMPLE

C:\PS> extension -name "File" -extension "doc"
PS> extension -name "File" -extension "doc"
File.doc

.EXAMPLE

C:\PS> extension "File" "doc"
PS> extension "File" "doc"
File.doc

.LINK
Expand Down Expand Up @@ -726,15 +726,15 @@ None. Update-Month.ps1 does not generate any output.

.EXAMPLE

C:\PS> .\Update-Month.ps1
PS> .\Update-Month.ps1

.EXAMPLE

C:\PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv
PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv

.EXAMPLE

C:\PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv -outputPath `
PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv -outputPath `
C:\Reports\2009\January.csv
#>

Expand Down Expand Up @@ -809,15 +809,15 @@ None. Update-Month.ps1 does not generate any output.

Example 1

C:\PS> .\Update-Month.ps1
PS> .\Update-Month.ps1

Example 2

C:\PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv
PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv

Example 3

C:\PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv -outputPath
PS> .\Update-Month.ps1 -inputpath C:\Data\January.csv -outputPath
C:\Reports\2009\January.csv

# RELATED LINKS
Expand Down
Loading