/bin/sh: line 2: `BASH_FUNC_ttr%%': not a valid identifier

Barrie Stott zen146410 at zen.co.uk
Thu Oct 9 13:06:05 PDT 2014

On 9 Oct 2014, at 19:30, Brandon Allbery wrote:

> On Thu, Oct 9, 2014 at 12:25 PM, Barrie Stott <zen146410 at zen.co.uk> wrote:
> This is the sequence of events that led to me getting the error in the Subject line.
> Check your .bash_profile / .bashrc; you appear to be defining a function named ttr%%, which is an illegal function name.
> -- 
> brandon s allbery kf8nh                               sine nomine associates
> allbery.b at gmail.com                                  ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

In ~/.bashrc I define the following which gives the only area in the file where 'ttr' is mentioned:

alias ttrr='echo "2012: Apr 28: May 26: Jun 30: Sep 29: Oct 27: Dec 1"'
function ttr() { 
   d="Jan 25: Feb 22: Mar 29: Apr 26: May 31: Jun 28: Sep 27: Oct 25: Dec 6"
   echo "2014: $d"
export -f ttr

That was the first place I looked when I saw 'ttr' in the error message. I have defined no 'ttr%%' function though and I don't know enough about Bash to know how to get from 'ttr' to either 'ttr%%' or 'BASH_FUNC_ttr%%. If you or anyone else knows how to make a connection between 'ttr' and 'ttr%%' please let me know.


More information about the macports-users mailing list