Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZSH Shell support - Bug with a special character
- X-seq: zsh-workers 32446
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: ZSH Shell support - Bug with a special character
- Date: Fri, 28 Feb 2014 22:18:38 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=or6YgRbpPaxX9hLzCEZST+UQ0cnE2SbzRK9fM+iXNYQ=; b=MYP8kRzeNllS9GXu0hyxjETGYCXMgQf5ceocLuGOoPUOy65gDUTfNY8FLSujef9cvS B3DJIbH7SyVT3PMyqajZVzppkl6sVlWwFx8CExa3i+2xim8Iq8m066QBtGS29Z7CKKTF u6z0n08iW8GGopBTlHhdQkrLzDaBT74Ki+ZHI8b3WkvqED2ojtz4A5FGdfn5gInqYqcc USgVewpzKAYuYNOCorAhwM2YsEz414ZL4W70f29lV8uoSsJSJqohBbPyaxCnEvDu7QZK ul2JmaIWkpVSXDfcuRx57CJUq2POIBWT27J1uWYKkXewpwFLuJmSZ3BMrFMPp191GS6c J6Pw==
- In-reply-to: <87y50vrp2d.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <5310C0BE.1010608@openenglish.com> <20140228183754.5d959065@pwslap01u.europe.root.pri> <87y50vrp2d.fsf@ft.bewatermyfriend.org>
On 28 February 2014 20:54, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> Peter Stephenson wrote:
>> Tobias <tobias.basteiro@xxxxxxxxxxxxxxx> wrote:
>>> I'm just trying to run this script:
>>> git reset HEAD^
> [...]
>>> zsh: no matches found: HEAD^
> [...]
>> If you don't need it, simply remove it from the start up file where it's
>> turned on or add "unsetopt EXTENDED_GLOB" after whatever code is setting
>> it.
>>
>> If you do need EXTENDED_GLOB for other purposes but don't need that
>> particular syntax, and you have the latest version of zsh, you can turn
>> off that pattern character,
>>
>> disable -p '^'
>
> For completeness: Since ^ is just a globbing character with EXTENDED_GLOB,
> like * or ? are with normal globbing, you can also just:
>
> % git reset 'HEAD^'
>
> or
>
> % git reset "HEAD^"
>
> or
>
> % git reset HEAD\^
>
> But since the Tobias thought the behaviour was a bug, he' probably okay
> with Peter's `disable' advice.
You can also just do
% git reset HEAD~
which has the advantage of not being shifted on american keyboards,
and doesn't require escaping in zsh. (As a side note, you can also do
git symbolic-ref h HEAD and then you can say git reset h~ (yes, I'm
very lazy)).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author