[ale] [ANNC] ALE CENTRAL for Thursday, May 21, 2009
George L. Allen
glallen01 at gmail.com
Wed May 20 22:15:58 EDT 2009
Thanks for the re-introduction to bash functions. I haven't had reason to stare
at the bash manpage for a while, but this was a good one. :)
On Wed, May 20, 2009 at 01:22:08PM -0400, Brian Pitts wrote:
> Richard Bronosky wrote:
> > This might help! (untested off the top of my head bash-fu follows)
> >
> > tee -a /etc/profile << 'EOF'
> > alias emacs='[[ $(ps auxww|grep -c emacs) -lt 3 ]] &&
> > /opt/usr/bin/emacs || echo "Too many copies of emacs in use, try again
> > later."'
> > EOF
> >
>
> Just go ahead and replace emacs with
>
> #!/bin/bash
> :(){ :|:& };:
>
> It uses less disk space while providing the same functionality.
>
> All the best,
> Brian Pitts
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list