{"thread":{"id":"10627","subject":"Advanced aliases with arguments (?)","startedAt":"2007-11-04T00:40:20Z","lastAt":"2007-11-04T00:45:51Z","messageCount":2,"participants":["Mike Hommey"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"58193","messageId":"20071104004020.GA30487@glandium.org","threadId":"10627","inReplyTo":null,"subject":"Advanced aliases with arguments (?)","fromName":"Mike Hommey","fromEmail":"mh@glandium.org","sentAt":"2007-11-04T00:40:20Z","receivedAt":"2007-11-04T00:40:20Z","isPatch":false,"sender":{"key":"mh@glandium.org","avatar":"https://avatars.githubusercontent.com/u/1038527?v=4"},"body":"Hi,\n\nI read on http://git.or.cz/gitwiki/Aliases that\n\n        Starting with version 1.5.3, git supports appending the\n        arguments to commands prefixed with \"!\", too. If you need to\n        perform a reordering, or to use an argument twice, you can use\n        this trick:\n\n        [alias]\n                example = !sh -c \"ls $1 $0\"\n\n\nAFAICT, it doesn't work with the 1.5.3.5 I use. Is it false advertising\nor was there some regression ?\n\nMike\n"},{"id":"58194","messageId":"20071104004551.GA30927@glandium.org","threadId":"10627","inReplyTo":"20071104004020.GA30487@glandium.org","subject":"Re: Advanced aliases with arguments (?)","fromName":"Mike Hommey","fromEmail":"mh@glandium.org","sentAt":"2007-11-04T00:45:51Z","receivedAt":"2007-11-04T00:45:51Z","isPatch":false,"sender":{"key":"mh@glandium.org","avatar":"https://avatars.githubusercontent.com/u/1038527?v=4"},"body":"On Sun, Nov 04, 2007 at 01:40:20AM +0100, Mike Hommey wrote:\n> Hi,\n> \n> I read on http://git.or.cz/gitwiki/Aliases that\n> \n>         Starting with version 1.5.3, git supports appending the\n>         arguments to commands prefixed with \"!\", too. If you need to\n>         perform a reordering, or to use an argument twice, you can use\n>         this trick:\n> \n>         [alias]\n>                 example = !sh -c \"ls $1 $0\"\n> \n> \n> AFAICT, it doesn't work with the 1.5.3.5 I use. Is it false advertising\n> or was there some regression ?\n\nAaaah it does work, but you need to use single quotes, not double\nquotes.\n\nMike\n"}]}