Unfamiliar shell syntax in ack-grep install script
问题 From the ack installation page (http://betterthangrep.com/install/) there is a one-liner installation with curl: curl http://betterthangrep.com/ack-standalone > ~/bin/ack && chmod 0755 !#:3 I understand that it's getting the file from the website and saving it to ~/bin/ack, then setting permissions, but what does that last part ( !#:3 ) do ? (I do not recognize the syntax and Googling didn't yield any helpful results) 回答1: See the section called HISTORY EXPANSION in man bash, particularly the