Scientist
Scientist

Reputation: 1835

How to get rid of extra irrelevant PowerShell messages

When I run echo $PWD I get this verbose message,


Path
----
/home/foo

How can I get rid of the irrelevant messages in the output? I simply need /home/foo just like in a bash environment.

Upvotes: 1

Views: 56

Answers (1)

Alistair Wall
Alistair Wall

Reputation: 332

echo $PWD.path

$PWD is an object with a member Path.

Upvotes: 3

Related Questions