I wonder who came up with some good options for the use of automatic variables $^, and $$in Powershell. At the moment, I do not see much benefit for them, at least from the point of view of the programmer.
When using PS in interactive mode and executing a long command, you can use .$^for repetition, and with help $$you can get the last argument, but .$^it looks pretty uncomfortable for me that I do not think this is something people will use every day. In addition, since it $$gives only the last argument, it is probably likewise difficult to use effectively.
But maybe I'm just mistaken, and they have useful uses, and I just don't see them.
source
share