linux - What does `!:-` do? -


i new bash scripting , in ubuntu\debian package system.

today studying content of preinst file script executes before package unpacked debian archive (.deb) file.

my fist doubt line containing this:

!:-

probably stupid question but, using google, can't find answer.

insert last command without last argument (bash)

/usr/sbin/ab2 -f tls1 -s -n 1000 -c 100 -t 2 http://www.google.com/ 

then

!:- http://www.stackoverflow.com/ 

is same as

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

Comments

Popular posts from this blog

python - Overwriting the save method of a Django model -

java - how to browse all messages from 2 different MQQueue in the same function? -

How to run C# code using mono without Xamarin in Android? -