Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does `!:-` do?

I am very new to bash scripting and in Ubuntu\Debian package system.

Today I am studying the content of this preinst file that the script executes before that package is unpacked from its Debian archive (.deb) file.

My fist doubt is about a line containing this:

!:-

Probably it is a stupid question but, using Google, I can't find an answer.

like image 464
Gerald Hughes Avatar asked Sep 18 '26 06:09

Gerald Hughes


1 Answers

Insert the last command without the 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 the same as

/usr/sbin/ab2 -f TLS1 -S -n 1000 -c 100 -t 2 http://www.stackoverflow.com/
like image 108
Gerald Hughes Avatar answered Sep 19 '26 19:09

Gerald Hughes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!