/bin/sh: line 2: `BASH_FUNC_ttr%%': not a valid identifier
Michael Crawford
mdcrawford at gmail.com
Thu Oct 9 13:12:06 PDT 2014
Try commenting off portions of your .bashrc by inserting "#" with
Emacs to see if you can make the complaint go away.
Alternatively, save a copy of your file as a backup, then just delete
portions to see if you can eliminate the complaint.
When the complaint goes away, try putting in just half of what you had
last taken out, followed by - possibly the other half.
This is known as "bisecting a bug". It does not always work but when
it does it can be a very powerful technique, because the actual source
of the complaint may be in some other code that you do not yet have
any reason to suspect.
Michael David Crawford
mdcrawford at gmail.com
http://www.warplife.com/mdc/
Available for Software Development in the Portland, Oregon Metropolitan
Area.
On Thu, Oct 9, 2014 at 1:06 PM, Barrie Stott <zen146410 at zen.co.uk> wrote:
>
> 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.
>
> Barrie.
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users
More information about the macports-users
mailing list