zsh-users
 help / color / mirror / code / Atom feed
* EQUALS =command expansion
@ 2006-11-24  4:57 Atom Smasher
  2006-11-24 11:32 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Atom Smasher @ 2006-11-24  4:57 UTC (permalink / raw)
  To: zsh-users

this does what i'd expect:

  $ ls -lh =lpr-portrait =lpr-landscape
  -rwxr-xr-x  1 atom  atom  89B Nov 21 04:13 /home/atom/bin/lpr-landscape
  -rwxr-xr-x  1 atom  atom  88B Nov 21 04:11 /home/atom/bin/lpr-portrait


but if i try to use TAB to expand "=lpr-*" it doesn't work. even without a 
TAB expansion, i get this:

  $ ls -lh =lpr-*
  zsh: lpr-* not found

another example that i'd expect to "just work":
  $ ls -l =*grep
  zsh: *grep not found

i'd expect that to return:
  /usr/bin/grep
  /usr/bin/egrep
  /usr/bin/fgrep
  /usr/bin/bzgrep
  /usr/bin/bzegrep
  /usr/bin/bzfgrep
  /usr/bin/zgrep
  /usr/bin/zegrep
  /usr/bin/zfgrep
  /usr/bin/pgrep
  /usr/local/bin/msggrep
  /usr/local/bin/zipgrep
  /usr/local/bin/pcregrep

(a lot of greps, and i haven't even installed ngrep on this box, yet.)

ZSH_VERSION=4.3.2

intuitively, the string "=lpr-*" should expand both with the TAB and when 
executed on the command line. a quick look at the man pages doesn't seem 
to indicate that this wouldn't work.

  1) is this a zsh bug?
  2) a documentation bug?
  3) operator error?

thanks...


-- 
         ...atom

  ________________________
  http://atom.smasher.org/
  762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
  -------------------------------------------------

 	"We will, in fact, be greeted as liberators."
 		-- Dick Cheney, 16 March 2003



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-24 11:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-24  4:57 EQUALS =command expansion Atom Smasher
2006-11-24 11:32 ` Peter Stephenson

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).