From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ernest Newsgroups: gmane.emacs.help Subject: shell-command fails to execute shell function Date: Mon, 10 Jan 2011 06:40:21 -0800 (PST) Organization: http://groups.google.com Message-ID: <50126229-51c9-4bec-911d-1bb4095ef8ed@35g2000prb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1294684646 29899 80.91.229.12 (10 Jan 2011 18:37:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2011 18:37:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 10 19:37:20 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PcMcI-00071x-Vf for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jan 2011 19:37:19 +0100 Original-Received: from localhost ([127.0.0.1]:36969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcMcI-0007rS-F7 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jan 2011 13:37:18 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!35g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 9 Original-NNTP-Posting-Host: 80.58.205.38 Original-X-Trace: posting.google.com 1294670422 1184 127.0.0.1 (10 Jan 2011 14:40:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 10 Jan 2011 14:40:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 35g2000prb.googlegroups.com; posting-host=80.58.205.38; posting-account=dqre7QoAAABu2BxfYJNu4mwxpl46bWpP User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; ca; rv:1.9.1.15) Gecko/20101028 Iceweasel/3.0.1 (like Firefox/3.5.15),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:184180 X-Mailman-Approved-At: Mon, 10 Jan 2011 13:36:48 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78368 Archived-At: Hi, I have a shell function defined in ~/.bashrc. When I try to run the function with shell-command, it fails with: /bin/bash: fm: command not found "fm" being the function's name. I suppose I could precede every command with "source ~/.bashr" but I'm sure there must be something more appropriate. Any comment welcome. Ernest