zsh-workers
 help / color / mirror / code / Atom feed
* emulate with options other than -c is broken
@ 2012-10-05 23:01 Peter Stephenson
  2012-10-07 19:26 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2012-10-05 23:01 UTC (permalink / raw)
  To: Zsh Hackers' List

Regardless of the autoload thing,

  emulate zsh -o extendedglob -c '[[ -o extendedglob ]] ||
  print "extendedglob is NOT set"'

prints

  extendedglob is NOT set

(though zsh emulation did take effect) while

  setopt ignorebraces          
  emulate zsh -o extendedglob
  [[ -o ignorebraces ]] && print "ignorebraces IS still set"

prints

  ignorebraces IS still set

(though extendedglob did get set).

This is because of the position where the emulation takes effect within
the emulate builtin.  Also, I'm not happy that parse errors in the
option parsing are handled properly.

Work for tomorrow.

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


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

end of thread, other threads:[~2012-10-13  4:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-05 23:01 emulate with options other than -c is broken Peter Stephenson
2012-10-07 19:26 ` Peter Stephenson
2012-10-11 19:53   ` Peter Stephenson
2012-10-13  4:01     ` Bart Schaefer

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