New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pasting brackets gets escaped #6654
Comments
facing the same issue. |
What |
|
$ zsh --version
zsh 5.3 (x86_64-apple-darwin17.0)
$ zle -l | egrep '(self-insert|bracketed-paste)'
bracketed-paste (bracketed-paste-magic)
self-insert (url-quote-magic) |
Does this happen when running zsh without rc files? Try that with |
Ok, let's narrow down the culprit. First, comment out the My guess is that |
Removing/commenting out the |
Sourcing
|
That's expected behavior because it's inside a URL (pasting a quoted URL should get rid of this behavior). Can you try with your first example, |
I resolved this issue by adding this to my
|
@mcornella Well I definitely don't expect that behavior, so how can I turn this off? |
If you added it to your
|
I did start a new shell. … So I tried your proposal. Executing this in the shell, works for me as well. So I re-activated it in the |
Since the command by itself does work then your zsh may not be reading The other thing that may be happening is that the shell is aborting reading the entire file due to an error so only some of the variables get set and some of the commands get executed but not all. This will take a little investigation on your part but at least there is a viable solution. |
I definitely is reading this file, When I start
And when I run int that same shell
When I execute
|
Is this a dupe of #5499 ? |
That issue is very specific to two versions of OS X where-as this is not. I have had this issue on more versions of OS X than listed but seems to only be on OS X versions of zsh obtained from brew. |
And I do have it on CentOS, so this is not a Mac OS X only issue. |
@AlmightyOatmeal 10x man this solved the issue for me, i wish it will be included OOB in future releases of zsh |
After the latest update (run |
Fixes ohmyzsh#5499 Fixes ohmyzsh#5569 Fixes ohmyzsh#6338 Fixes ohmyzsh#6654 Fixes ohmyzsh#6255 Fixes ohmyzsh#7632 Closes ohmyzsh#7763 Co-authored-by: Daniel Galán y Martins <git@galan.de>
Fixes ohmyzsh#5499 Fixes ohmyzsh#5569 Fixes ohmyzsh#6338 Fixes ohmyzsh#6654 Fixes ohmyzsh#6255 Fixes ohmyzsh#7632 Closes ohmyzsh#7763 Co-authored-by: Daniel Galán y Martins <git@galan.de>
Fixes ohmyzsh#5499 Fixes ohmyzsh#5569 Fixes ohmyzsh#6338 Fixes ohmyzsh#6654 Fixes ohmyzsh#6255 Fixes ohmyzsh#7632 Closes ohmyzsh#7763 Co-authored-by: Daniel Galán y Martins <git@galan.de>
Fixes ohmyzsh#5499 Fixes ohmyzsh#5569 Fixes ohmyzsh#6338 Fixes ohmyzsh#6654 Fixes ohmyzsh#6255 Fixes ohmyzsh#7632 Closes ohmyzsh#7763 Co-authored-by: Daniel Galán y Martins <git@galan.de>
Fixes ohmyzsh#5499 Fixes ohmyzsh#5569 Fixes ohmyzsh#6338 Fixes ohmyzsh#6654 Fixes ohmyzsh#6255 Fixes ohmyzsh#7632 Closes ohmyzsh#7763 Co-authored-by: Daniel Galán y Martins <git@galan.de>
Fixes #5499 Fixes #5569 Fixes #6338 Fixes #6654 Fixes #6255 Fixes #7632 Closes #7763 Co-authored-by: Daniel Galán y Martins <git@galan.de>
Executing shell commands from e.g. a tutorial containing something like
$(cmd ...)
always triggersan escape of the initial
(
. This is really annoying.Pasting:
echo $(foo bar)
Gives:
echo $\(foo bar)
, which cannot be executedIs there a way to disable this?
The text was updated successfully, but these errors were encountered: