Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux “!:-”是什么意思做_Linux_Bash_Ubuntu_Debian_Sh - Fatal编程技术网

Linux “!:-”是什么意思做

Linux “!:-”是什么意思做,linux,bash,ubuntu,debian,sh,Linux,Bash,Ubuntu,Debian,Sh,我对bash脚本和Ubuntu\Debian包系统非常陌生 今天,我正在研究这个preinst文件的内容,脚本在从Debian归档(.deb)文件中解包之前执行该文件 我的第一个怀疑是关于包含以下内容的一行: !:- 可能这是一个愚蠢的问题,但使用Google,我找不到答案。插入最后一个命令,但不插入最后一个参数(bash) 然后 与 /usr/sbin/ab2 -f TLS1 -S -n 1000 -c 100 -t 2 http://www.stackoverflow.com/ 请在使用位

我对bash脚本和Ubuntu\Debian包系统非常陌生

今天,我正在研究这个preinst文件的内容,脚本在从Debian归档(.deb)文件中解包之前执行该文件

我的第一个怀疑是关于包含以下内容的一行:

!:-


可能这是一个愚蠢的问题,但使用Google,我找不到答案。

插入最后一个命令,但不插入最后一个参数(bash)

然后

/usr/sbin/ab2 -f TLS1 -S -n 1000 -c 100 -t 2 http://www.stackoverflow.com/

请在使用位置的上下文中发布更多代码。您的意思是
${!:-}
!:-
是所谓的历史交互命令之一。查看手册,了解所有这些好处:
!:- http://www.stackoverflow.com/
/usr/sbin/ab2 -f TLS1 -S -n 1000 -c 100 -t 2 http://www.stackoverflow.com/