[lug] newgrp and aliases
Davide Del Vento
davide.del.vento at gmail.com
Wed Jan 16 14:56:33 MST 2013
Of course I meant:
wanted_group=<string-of-wanted-group>
my_current_group=`id -g -n`
if [[ $my_current_group == $wanted_group ]]; then
#rest-of my bash_profile so it doesn't get executed twice
else
newgrp - $wanted_group
fi
And this works great :-))))
Any trick to make the exit command exiting twice? Of course alias
exit='exit;exit' doe not work.
Cheers,
Davide
On Wed, Jan 16, 2013 at 2:50 PM, Davide Del Vento <
davide.del.vento at gmail.com> wrote:
> You are so cool, Jeffrey :-)
>
> I just made it slightly smarter
>
> wanted_group=<string-of-wanted-group>
> my_current_group=`id -g -n`
> if [[ $my_current_group != $wanted_group ]]; then
> #rest-of my bash_profile so it doesn't get executed twice
> newgrp - $wanted_group
> fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20130116/0514dd79/attachment.html>
More information about the LUG
mailing list