Re: mutt called from script does not more work...
Am 2006-09-09 12:48:48, schrieb cga2000:
> Looks like you need to double-quote the string that follows the -c flag.
> Otherwise, bash silently ignores whatever is specified after the mutt
> command.
The problem is, that the config string is read/sourced from a Config
file like:
MUA="mutt -F ${HOME}/.tdnewmsg/muttrc -f"
TERMINAL="xterm -class XTerm -name XTerm -geometry 80x30+250+200 -xrm
*VT100*font6 -title mutt/tdnewmsg -n mutt -e bash -l -c "
and then in the script I have:
----8<--------------------------------------------------------------
if [ $? -eq 0 ] ; then
DIRSEL="+${RET}"
if [ -n "${DISPLAY}" ] ; then
DISPLAY=${DISPLAY} ${TERMINAL} ${MUA} ${DIRSEL} &
elif [ -z "${DISPLAY}" ] && [ "${TERM}" != "dumb" ] ; then
${MUA} ${DIRSEL} &
fi
fi
----8<--------------------------------------------------------------
> Did you touch anything on your machine that might have affected the
> behavior of bash over the last few weeks..?
The only thing I have changed was my ~/.Xresources/XTerm
And its realy weided, that mutt does not accept the
-F ${HOME}/.tdnewmsg/muttrc
but reading instead
${HOME}/.mutt/muttrc
And then there is a second problem: My XTerm is white (like you
have deleted all XTerm resources). XTerm does not more read
~/.Xresources/XTerm like before
Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)