zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Peter Stephenson <pws@csr.com>, zsh-users@sunsite.dk (Zsh users list)
Subject: Re: Minor expansion problem
Date: Tue, 25 Sep 2001 15:30:42 +0000	[thread overview]
Message-ID: <1010925153042.ZM5438@candle.brasslantern.com> (raw)
In-Reply-To: <27130.1001423377@csr.com>

On Sep 25,  2:09pm, Peter Stephenson wrote:
}
} Can anyone would explain why I get
} 
} % echo foo and, just to be different, bar >foo
} % echo `cat foo`<TAB>
}      ->foo\ and,\ just\ to\ be\ different,\ bar.
} 
} with the _expand completer (and complete-word bound to TAB)

It's in part because you used backticks.  Expanding $(...) doesn't put
in backslashes, but expanding `...` does.  This appears to be happening
because the ${(e)exp} at _expand line 83 returns one word for `...` but
an array for $(...).

} but what I expect, i.e. no backslashes, with the _expand_word widget?

Hrm, I get backslashes in both cases.  Are you sure you're using the
_expand_word widget (^Xe) and not the builtin expand-word (^X*) ?

} I've stared at my styles but can't see what might be causing it.

The only style that I can see getting involved here is the "glob"
style, in contexts :completion:expand:* and :completion:expand-word:*.
See _expand line 98.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


      reply	other threads:[~2001-09-25 15:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-25 13:09 Peter Stephenson
2001-09-25 15:30 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1010925153042.ZM5438@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=pws@csr.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).