$$, $?, $^ 在powershell 中代表什么? [英] What does $$, $?, $^ represent in powershell?
本文介绍了$$, $?, $^ 在powershell 中代表什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在调试器中看到这些变量,但我不确定它们的作用.
Saw these variables in the debugger and I'm not sure what they do.
推荐答案
$_
当前管道对象;用于脚本块、过滤器、函数的过程子句、where-object、foreach-object 和 switch$^
包含输入到 shell 的最后一行的第一个标记$$
包含输入到 shell 的最后一行的最后一个标记$?
包含最后一条语句的成功/失败状态$_
The current pipeline object; used in script blocks, filters, the process clause of functions, where-object, foreach-object and switch$^
contains the first token of the last line input into the shell$$
contains the last token of last line input into the shell$?
Contains the success/fail status of the last statement
来源:http://www.computerperformance.co.uk/powershell/powershell_variables.htm#%24Dollar_variables_
这篇关于$$, $?, $^ 在powershell 中代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文