unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: term with multiple arguments
Date: Fri, 25 Jul 2014 00:35:24 +0200	[thread overview]
Message-ID: <87wqb2mllf.fsf@debian.uxu> (raw)
In-Reply-To: mailman.5973.1406240539.1147.help-gnu-emacs@gnu.org

Carlos Pita <carlosjosepita@gmail.com> writes:

> Is this possible? ...

With some other function, should be.

> (term "ls /home")
> (term "sh -c 'ls /home'")
> too many arguments

Does it say that? Mine says, for both:

    Process terminal exited abnormally with code 127
    ..: 1: [: sh: unexpected operator
    ..: 1: exec: sh -c 'ls /home': not found

> (term '( "ls" "/home" )) (term [ "ls" "/home" ])
> wrong type argument

Somewhere along the line that fails a `stringp' test,
i.e., `term' wants a string.

> (term "ls" "/home")
> wrong number of arguments

You can see that this isn't going to work just by
`C-h f term': (term PROGRAM) - so one argument.

-- 
underground experts united


       reply	other threads:[~2014-07-24 22:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5973.1406240539.1147.help-gnu-emacs@gnu.org>
2014-07-24 22:35 ` Emanuel Berg [this message]
2014-07-24 23:08   ` term with multiple arguments Carlos Pita
     [not found]   ` <mailman.5975.1406243313.1147.help-gnu-emacs@gnu.org>
2014-07-24 23:27     ` Emanuel Berg
2014-07-24 22:21 Carlos Pita
2014-07-25  9:42 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wqb2mllf.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).