zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: newuser in 4.3.0-dev-4 (Was: PATCH: newuser system)
Date: Sat, 18 Feb 2006 12:57:37 +0000	[thread overview]
Message-ID: <200602181257.k1ICvcnk028384@pwslaptop.csr.com> (raw)
In-Reply-To: Your message of "Sat, 18 Feb 2006 08:42:37 GMT." <slrndvdnft.h55.mason@g.primenet.com.au>

Geoff Wing wrote:
> Geoff Wing <gcw@zsh.org> typed:
> : I think it should abort in a couple of cases:
> : a) when run as root.  root should probably have to make his/her own changes
> :    manually (though maybe other people would think otherwise)
> : b) when we don't have write access to the HOME directory, say, after an su
> 
> Currently, for "b)", I get the effect of "which zsh-newuser-install" to the
> screen twice.

I wasn't able to reproduce that.  I created a new user with zsh as the
login shell and the directory owned by root.  Nothing showed up.  Then I
changed the directory to the new user and tried again.  It ran the
script.

My guess is that somewhere there is some hairy interaction between
function definitions and the code in the newuser script which is what is
directly run by the zsh/newuser module:

if functions zsh-newuser-install >/dev/null 2>&1 ||
   autoload -U +X zsh-newuser-install; then
   zsh-newuser-install
fi

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page still at http://www.pwstephenson.fsnet.co.uk/


  reply	other threads:[~2006-02-18 12:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-23 11:13 PATCH: newuser system Peter Stephenson
2005-11-24  6:00 ` Bart Schaefer
2005-11-24  6:17   ` Clint Adams
2005-11-24  6:28   ` Danek Duvall
2005-11-24 11:42   ` Peter Stephenson
2005-11-24 18:20     ` Bart Schaefer
2005-11-25 10:24       ` Peter Stephenson
2005-11-26 23:18         ` Bart Schaefer
2005-11-24 18:52     ` Wayne Davison
2005-11-29  1:58 ` Geoff Wing
2006-02-18  8:42   ` newuser in 4.3.0-dev-4 (Was: PATCH: newuser system) Geoff Wing
2006-02-18 12:57     ` Peter Stephenson [this message]
2006-02-19  5:13       ` Geoff Wing
2006-02-20 11:09         ` Peter Stephenson

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=200602181257.k1ICvcnk028384@pwslaptop.csr.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@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).