{"thread":{"id":"20865","subject":"git rebase --interactive problems","startedAt":"2009-09-07T12:31:56Z","lastAt":"2009-09-07T13:04:09Z","messageCount":3,"participants":["Dave Rodgman","Jeff Epler","Carlo Marcelo Arenas Belon"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"122618","messageId":"1252326716.7497.1333578429@webmail.messagingengine.com","threadId":"20865","inReplyTo":null,"subject":"git rebase --interactive problems","fromName":"Dave Rodgman","fromEmail":"dav1dr@eml.cc","sentAt":"2009-09-07T12:31:56Z","receivedAt":"2009-09-07T12:31:56Z","isPatch":false,"sender":{"key":"dav1dr@eml.cc","avatar":null},"body":"When I try to do even the simplest rebase --interactive, I get a cryptic\nerror message:\n\n$ git rebase -i HEAD~2\n<do nothing in the editor that appears, just save>\n\nI then get:\n\n/usr/lib/git-core/git-rebase--interactive: 1: arithmetic expression:\nexpecting primary: \"-c ^[^#]\n2+-c ^[^#]\n0\"\n\nand all I can do is git rebase --abort\n\nAm I doing something wrong, or is this a bug? I am using git 1.6.4.2\n\nthanks\n\nDave\n"},{"id":"122621","messageId":"20090907130338.GA11644@unpythonic.net","threadId":"20865","inReplyTo":"1252326716.7497.1333578429@webmail.messagingengine.com","subject":"Re: git rebase --interactive problems","fromName":"Jeff Epler","fromEmail":"jepler@unpythonic.net","sentAt":"2009-09-07T13:03:38Z","receivedAt":"2009-09-07T13:03:38Z","isPatch":false,"sender":{"key":"jepler@unpythonic.net","avatar":"https://avatars.githubusercontent.com/u/1517291?v=4"},"body":"It looks like something is going wrong with the 'grep -c' in\n    mark_action_done () {\n            sed -e 1q < \"$TODO\" >> \"$DONE\"\n            sed -e 1d < \"$TODO\" >> \"$TODO\".new\n            mv -f \"$TODO\".new \"$TODO\"\n            count=$(grep -c '^[^#]' < \"$DONE\")\n            total=$(($count+$(grep -c '^[^#]' < \"$TODO\")))\n            if test \"$last_count\" != \"$count\"\n            then\n                    last_count=$count\n                    printf \"Rebasing (%d/%d)\\r\" $count $total\n                    test -z \"$VERBOSE\" || echo\n            fi\n    }\nare you using an unusual platform or have an unusual /bin/grep or\n/bin/sh?\n\nJeff\n"},{"id":"122622","messageId":"20090907130409.GA10879@sajinet.com.pe","threadId":"20865","inReplyTo":"1252326716.7497.1333578429@webmail.messagingengine.com","subject":"Re: git rebase --interactive problems","fromName":"Carlo Marcelo Arenas Belon","fromEmail":"carenas@sajinet.com.pe","sentAt":"2009-09-07T13:04:09Z","receivedAt":"2009-09-07T13:04:09Z","isPatch":false,"sender":{"key":"carenas@sajinet.com.pe","avatar":"https://avatars.githubusercontent.com/u/76036?v=4"},"body":"On Mon, Sep 07, 2009 at 01:31:56PM +0100, Dave Rodgman wrote:\n> \n> Am I doing something wrong, or is this a bug? I am using git 1.6.4.2\n\ncan you do before running the rebase (assuming a bourne shell) :\n\n  unset GREP_OPTIONS\n\nthis looks like the bug I just send a patch to the list to fix and\nwhich seems to be also reported in Ubuntu as :\n\n  https://bugs.launchpad.net/ubuntu/+source/git-core/+bug/398393\n\nCarlo\n"}]}