Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Setting default group (newgrp ?)



On Wed, 7 Jan 2009, Richard Hartmann wrote:

On Tue, Jan 6, 2009 at 23:32, Benjamin R. Haskell <zsh@xxxxxxxxxx> wrote:

$ zsh --version
zsh 4.3.6 (i686-pc-linux-gnu)

On Tue, Jan 6, 2009 at 23:39, Webb Sprague <webb.sprague@xxxxxxxxx> wrote:

(0) dextro:~ [0]% zsh --version                                           <772>
zsh 4.2.6 (x86_64-redhat-linux-gnu)


4.3.6 vs 4.2.6

Yes, though I'm pretty sure that shouldn't affect newgrp.

And in fact, CVS-co'ing and compiling zsh-4_2_6 confirms it for my system[1]. I think the x86_64-redhat-linux-gnu vs i686-pc-linux-gnu is more of a factor. (Though, I could've sworn I saw 'i386-darwin-(something)' in a previous post from Webb.

Webb, is the behavior different for you on different architectures?

Best,
Ben


[1] test of Zsh 4.2.6 for newgrp:

$ env - PATH=/home/bhaskell/sandbox/zsh-4.2.6/bin:$PATH ~/sandbox/zsh-4.2.6/bin/zsh -ldf
zsh: failed to load module: zsh/zle
acer% groups
disk lp wheel cron audio cdrom video postgres apache lpadmin wordnet tcpdump users paludisbuild vmware qemu vboxusers
acer% id
uid=500(bhaskell) gid=500(users) groups=6(disk),7(lp),10(wheel),16(cron),18(audio),19(cdrom),27(video),70(postgres),81(apache),106(lpadmin),320(wordnet),442(tcpdump),500(users),501(paludisbuild),502(vmware),508(qemu),509(vboxusers)
acer% touch pre-newgrp
acer% newgrp video
zsh: failed to load module: zsh/zle
acer% touch post-newgrp
### ^D to logout ###
$ l *-newgrp
-rw------- 1 bhaskell users 0 2009-01-07 17:49 pre-newgrp
-rw------- 1 bhaskell video 0 2009-01-07 17:50 post-newgrp



Messages sorted by: Reverse Date, Date, Thread, Author