zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Nested shell command in zshdb (Was Re: typeset -p output gives shows variables which can't be read back in)
Date: Tue, 01 Mar 2011 08:57:51 -0800	[thread overview]
Message-ID: <110301085751.ZM8368@torch.brasslantern.com> (raw)
In-Reply-To: <AANLkTi=f-zE_7vY-jpV6MK+tCTcoponi-1X3i+W+F4o+@mail.gmail.com>

On Mar 1, 11:13am, Rocky Bernstein wrote:
}
} On Tue, Mar 1, 2011 at 10:15 AM, Bart Schaefer <schaefer@brasslantern.com>wrote:
} > You agree but don't know why? :-)
} 
} But to simplify it for you: I disagree.

Yes, I got that, hence the [ :-) ].

} >  It will
} > have defined functions which the new shell won't have
} 
} No, I had already handled that from the start and dumped functions via
} typeset -pf. (A look at the code would have shown that.)

Ah, you seem to think I'm critiquing your debugger, which I'm not. I'm
making general statements about the utility of creating a new shell
builtin [in the zsh/parameter module] whose sole purpose is to dump the
parameter state for later restoration -- and pointing out that it's
fiction to pretend that the parameter state can successfully dumped from
an arbitrary point in shell execution and then restored at a different
arbitrary point (or in a new shell), especially in the absence of all
those other things that your debugger does to preserve other aspects of
the state.

The more constrained context in your debugger is that the dump and
restore points are *the same* (modulo a single external command that is
run in between), but that says little about the general utility of the
specific feature in question.  It also doesn't address what the output
of "typeset -p" should be, as by definition that must include "typeset"
commands which you don't want in your context.


      reply	other threads:[~2011-03-01 16:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01 16:13 Rocky Bernstein
2011-03-01 16:57 ` 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=110301085751.ZM8368@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).