zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: INTERACTIVE_COMMENTS - why?
Date: Mon, 29 Aug 2011 08:17:15 -0700	[thread overview]
Message-ID: <110829081715.ZM7058@torch.brasslantern.com> (raw)
In-Reply-To: <87pqjug2og.fsf@ft.bewatermyfriend.org>

On Aug 24,  7:05pm, Frank Terbeck wrote:
} Subject: Re: INTERACTIVE_COMMENTS - why?
}
} Bart Schaefer wrote:
} > I have a little "eglob" function that I use as a prefix
} 
} Hm. I wonder how you're doing that. I've ended up with the following:
} 
} alias eglob='noalias eglob'
} function eglob() {
}     emulate -L zsh
}     setopt extended_glob
}     ${~"${argv[@]}"};
} }
} 
} Are you doing something similar or is there a neat trick to do that
} differently?

Essentially the same, except I know my zsh options won't mess it up
so I don't bother with "emulate", and I avoid re-globbing the name
of the command:

    eglob () {
	setopt localoptions extendedglob
	local c=$1
	shift
	$c $~*
    }


      reply	other threads:[~2011-08-29 15:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-24 12:02 Frank Terbeck
2011-08-24 12:44 ` Mikael Magnusson
2011-08-24 13:17   ` Frank Terbeck
2011-08-24 15:00     ` Bart Schaefer
2011-08-24 17:05       ` Frank Terbeck
2011-08-29 15:17         ` 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=110829081715.ZM7058@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /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).