Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Help on filename generation
- X-seq: zsh-users 11607
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Help on filename generation
- Date: Tue, 10 Jul 2007 16:50:20 -0700
- In-reply-to: <200707102114.l6ALEiUi004476@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200707102114.l6ALEiUi004476@xxxxxxxxxxxxxxxxxxx>
On Jul 10, 10:14pm, Peter Stephenson wrote:
}
} > chgrp biostat ./$newfilename # how do I make this the default behavi
} > or?
}
} The command "newgrp <group>" starts up a shell with a different default
} group
There's an easier way. Outside the "for" loop, do:
chgrp biostat .
chmod g+s .
Now all files created below the current directory will inherit the group
of the current directory, provided that the user who creates the file is
a member of the biostat group. Also the "g+s" mode will be inherited by
any directories created within the current directory.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author