News for hackers. Stuff that matters.
Re:Advancing in the Bash Shell by banachtarski on Tuesday September 13, 2016 @03:16AM (#12486162)
!! expands the command after you type enter first...
Re:Advancing in the Bash Shell by icebraining on Tuesday September 13, 2016 @03:41AM (#12486260)
It expands and then immediately executes, at least in bash by default.
Re:Advancing in the Bash Shell by devnonymous on Tuesday September 13, 2016 @03:44AM (#12486274)
depends on your histverify setting for 'shopt' do a

shopt -s histverify

versus

shopt -u histverify

and then add whatever you prefer (-s probably) to your bashrc

Re:Advancing in the Bash Shell by kbenson on Tuesday September 13, 2016 @04:07AM (#12486354)
For a personal system, that's fine. For the situation where you are a sysadmin and are jumping onto one of possibly hundreds of systems, I prefer not to rely on a behavior that is specifically made more safe (implying it is less safe as it exists by default) by active configuration. In that situation, it's much easier to just not use the less safe version in favor of the safer version if not too burdensome, and both exist.
Re:Advancing in the Bash Shell by devnonymous on Tuesday September 13, 2016 @04:14AM (#12486383)
...otoh, if you are a sysadmin managing possibly hundreds of systems, you shouldn't be 'jumping onto' any one of them at all these days ! You ought to be using fabric, chef, puppet, ansible ...etc ...Ha ha, only serious ;-)
Re:Advancing in the Bash Shell by kbenson on Tuesday September 13, 2016 @12:56PM (#12490096)
Sure, those reduce the instances you'll need a shell on a box, but they can't eliminate them. Sometimes you just need to see what's going on on that box, run top, see why there's a few thousand messages in the mail spool ad coax them through, figure out why SQL isn't responding or keeps dying, etc, etc.