From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: How automatically/immediately run command in ansi-term *with* *arguments* ? Date: Tue, 10 Feb 2015 15:49:56 -0500 Organization: A noiseless patient Spider Message-ID: References: <18d0a858-7d2b-42de-bc61-8e16ff376569@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423601427 19216 80.91.229.3 (10 Feb 2015 20:50:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2015 20:50:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 10 21:50:24 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YLHlH-0006q2-UD for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2015 21:50:24 +0100 Original-Received: from localhost ([::1]:41886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLHlH-0008MA-CK for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2015 15:50:23 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 60 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="26292"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8JF64r8z9RWMpOiwQplAd" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:iIPWvnLHZa/NSOfjG1+iIm+1Ytg= Original-Xref: usenet.stanford.edu gnu.emacs.help:210346 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102621 Archived-At: In article , Subhan Michael Tindall wrote: > Kind of a long shot, & I'm not set up to test it, > But maybe you could put program arg1 arg2... in back-ticks? `program arg1 > arg2` to force the grouping into a single 'program'? Backticks are processed by the shell. If it were using the shell, you would be able to do just "program arg1 arg2". > > > -----Original Message----- > > From: help-gnu-emacs-bounces+subhant=familycareinc.org@gnu.org > > [mailto:help-gnu-emacs-bounces+subhant=familycareinc.org@gnu.org] On > > Behalf Of Barry Margolin > > Sent: Monday, February 09, 2015 7:51 AM > > To: help-gnu-emacs@gnu.org > > Subject: Re: How automatically/immediately run command in ansi-term > > *with* *arguments* ? > > > > In article <18d0a858-7d2b-42de-bc61-8e16ff376569@googlegroups.com>, > > Chris Seberino wrote: > > > > > I'm trying to set some shortcuts for shell commands. I want to use > > > ansi-term as it has colors and other niceties not found in shell if I > > > use shell-command.... > > > > > > This works... > > > > > > (ansi-term 'some_command_here') > > > > > > This does *NOT*... > > > > > > (ansi-term 'some_command_here arg1 arg2') > > > > > > How get arguments to work? This would be quite a nice replacement for > > > shell-command if it could for people that like/need ansi-term. > > > > The argument to ansi-term is a program, not a command. There doesn't > > seem to be a way to provide arguments to the program. Write a script that > > does what you want, and put that as the program argument. > > > > -- > > Barry Margolin, barmar@alum.mit.edu > > Arlington, MA > > *** PLEASE post questions in newsgroups, not directly to me *** > > This message is intended for the sole use of the individual and entity to > which it is addressed and may contain information that is privileged, > confidential and exempt from disclosure under applicable law. If you are not > the intended addressee, nor authorized to receive for the intended addressee, > you are hereby notified that you may not use, copy, disclose or distribute to > anyone the message or any information contained in the message. If you have > received this message in error, please immediately advise the sender by reply > email and delete the message. Thank you. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***