Re: Thanks for a smooth 2.6 to 2.8 transistion
On Wed, Dec 15, 2004 at 12:36:42PM -0500, Adam C Powell IV wrote:
> On Wed, 2004-12-15 at 07:28, Sven Luther wrote:
> > On Wed, Dec 15, 2004 at 05:59:13AM -0600, Marcelo E. Magallon wrote:
> > > On Wed, Dec 15, 2004 at 10:46:50AM +0100, Sven Luther wrote:
> > >
> > > > Bah, perl is the ugliest language ever invented ...
> > >
> > > Write it in assembler for all I care. But have it do the right thing.
> >
> > Point taken.
> >
> > It would be easier if the adduser package would include a little script or
> > something to handle that.
>
> Indeed. That's bug #147518, more than two and a half years old!
>
> A patch to do something like this in postinst is in that bug, but I
> didn't (and still don't) know enough perl to make one crucial line work.
I'm not sure what you mean, but if it's about this:
while (defined($thisgroup = shift($config{new_user_groups}))) {
you write that as:
foreach my $thisgroup (split /\s+/, $config{"new_user_groups"}) {
HTH,
Marcelo
Reply to: