[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] [ANNC] ALE CENTRAL for Thursday, May 21, 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
- References:
- [ale] [ANNC] ALE CENTRAL for Thursday, May 21, 2009
- From: aaron at pd.org (aaron)
- [ale] [ANNC] ALE CENTRAL for Thursday, May 21, 2009
- From: nolan.voight at gmail.com (Grady Harris)
- [ale] [ANNC] ALE CENTRAL for Thursday, May 21, 2009
- From: aaron at pd.org (aaron)
- [ale] [ANNC] ALE CENTRAL for Thursday, May 21, 2009
- From: jim.kinney at gmail.com (Jim Kinney)
- [ale] [ANNC] ALE CENTRAL for Thursday, May 21, 2009
- From: Richard at Bronosky.com (Richard Bronosky)
- [ale] [ANNC] ALE CENTRAL for Thursday, May 21, 2009
- From: brian at polibyte.com (Brian Pitts)