Skip to main content
Clarify/correct behaviour of special parameter
Source Link
Thain
  • 117
  • 5

This returnsTo return the last argument of the most recently used command use the special parameter.:

$_

In this instance it will work if it is used within the script before another command has been invoked.

This returns the most recently used parameter.

$_

To return the last argument of the most recently used command use the special parameter:

$_

In this instance it will work if it is used within the script before another command has been invoked.

Source Link
Thain
  • 117
  • 5

This returns the most recently used parameter.

$_