I have a pet BaSH prompt that has served me in good stead in a number of other Linux flavours, and in Mint as well, prior to v13. But under Maya, when I open a BaSH terminal window, it has picked up the odd habit of apparently attempting to execute the first file in the top line of the directory listing of my home directory, twice. Here's what it looks like:

I created the two screen shot images shown at the top of the listing with gimp after opening the terminal window but before executing the 'ls' command, which is why 'bootinfoscript' isn't at the top. If I were to close the window and reopen it, next it would show, "BaSH_prompt.jpg: command not found", twice.
To make change the prompt, I create a file named ".bash_ps1" in my home directory containing the following:
***************************************
# Fill with minuses
# (this is recalculated every time the prompt is shown in function prompt_command):
fill="--- "
reset_style='\[\033[00m\]'
status_style=$reset_style'\[\033[0;90m\]' # gray color; use 0;37m for lighter color
prompt_style=$reset_style
command_style=$reset_style'\[\033[1;29m\]' # bold black
# Prompt variable:
PS1="$status_style"'$fill \t\n'"$prompt_style"'${debian_chroot:+($debian_chroot)}\u@\h:\w\$'"$command_style "
# Reset color for command output
# (this one is invoked every time before a command is executed):
trap 'echo -ne "\e[0m"' DEBUG
function prompt_command {
# create a $fill of all screen width minus the time string and a space:
let fillsize=${COLUMNS}-9
fill=""
while [ "$fillsize" -gt "0" ]
do
fill="-${fill}" # fill with underscores to work on
let fillsize=${fillsize}-1
done
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
bname=`basename "${PWD/$HOME/~}"`
echo -ne "\033]0;${bname}: ${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"
;;
*)
;;
esac
}
PROMPT_COMMAND=prompt_command
***************************************
Then I was supposed to add this to my '.bashrc':
***************************************
if [ -f "$HOME/.bash_ps1" ]; then
. "$HOME/.bash_ps1"
fi
***************************************
Except that in Mint 13, there was no '.bashrc' -- anywhere -- not even in /etc/skel (which I don't recall being the case prior to v13) so I created one containing just these three lines. The pet prompt otherwise works as advertised, it just appears to be trying to execute the uppermost file in that directory every time it opens, and it's killing me I can't figure out why.
I didn't create this prompt, I just 'borrowed' it and I don't have a clue what most of these lines are on about. I have tried tweaking the ones whose function I do recognise, but I nothing I have tried has had the desired effect. So if you have bothered to read this far for the sake of my trivial little problem, I thank you, and ask what you think might correct this.
Any ideas?
EDIT:
It just occurs to me that there is a risk to not fixing this. I should through some strange stroke of luck leave a destructive executable in that directory. Not a great danger, granted, but if it should happen to be at the top of the listing, it wouldn't be good GNUs.



