Re: Show us your /etc/profile

2015-08-27 Thread T B
Resurrecting this not-too-old thread. You might find this one useful if you run CARP firewalls which gives you a dynamic prompt telling you the master/backup/other status. function fwStatus { IFCONFIG=`ifconfig -a | grep carp:` NUMCARPS=`echo "$IFCONFIG" | wc -l` BACKUPCAR

Re: Show us your /etc/profile

2015-08-28 Thread T B
On Fri, Aug 28, 2015 at 1:20 AM, Alexander Hall wrote: > > I'm pretty sure this messes up $? at the prompt. Try: > > false > echo $? > > You could circumvent this by saving $? at the beginning of the function > and returning it at the end. > > Happy to report that this is not the case. T