From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Xi Shen Newsgroups: gmane.emacs.help Subject: Re: eval bash command at eshell Date: Fri, 07 Oct 2016 00:54:35 +0000 Message-ID: References: <83shsbks1x.fsf@gnu.org> <83h98rkjt4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1475801738 26091 195.159.176.226 (7 Oct 2016 00:55:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2016 00:55:38 +0000 (UTC) To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 02:55:35 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsJRX-0004Xx-Gl for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2016 02:55:19 +0200 Original-Received: from localhost ([::1]:60069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsJRV-0003Ic-SW for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Oct 2016 20:55:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsJR6-0003IL-C7 for help-gnu-emacs@gnu.org; Thu, 06 Oct 2016 20:54:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsJR4-00060n-By for help-gnu-emacs@gnu.org; Thu, 06 Oct 2016 20:54:51 -0400 Original-Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:36120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsJR1-0005vA-Jq; Thu, 06 Oct 2016 20:54:47 -0400 Original-Received: by mail-oi0-x233.google.com with SMTP id m72so41095405oik.3; Thu, 06 Oct 2016 17:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=TSMVtESof3/DyAtx1Sl4O/6xeMF5QTtTIaWUKjMEYEI=; b=OZeP9zaliPCVQLbgV/bKUmWFnKXXGej610kk/ksNPuMuNlzS0TPa7lJvCk+HFD2bb6 eDdn4DzgvZ+ubPtcs6nf4ElVNc7rdi1QAw6VWnETYVbDFbmy2MP2cj44PBtYVUDVF01r E5QBhWwMCG0oMyLkh9O97Ar8Dc/j6T+VtwR6DOkGcoPIB4x9ZOknWrWGQhaQAkECTb1m 7/vE7L+qT7c205aDmL9TwsiIwLNyHk4O8nc/Itf9FlpilxZVtnG3Kx1KKt0SuQC13Goa WmTjExO89fAMXUWc0nCMDXPvJ5zuZtZ9hS+Y11sQ6edZehUxQTC3IgKbMa5TDXszxjEO 68Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=TSMVtESof3/DyAtx1Sl4O/6xeMF5QTtTIaWUKjMEYEI=; b=kVD6WD8+11x837v8DgOGLxVDtTpu9ZFNWpSTJemK0jZ7iqp2WyTdI9vnfTLlsJ7fFk w68fERFP1T0MwAIi24iK8ra6BLy1Ci42vuDePDb2pLWI1p9GWJd++HbCuLsYDwAFzoxN 5mN1vzOd4q1XEa3XDMixvDpHMw0XLHl5J80VRZRIno+Wtqj/2nPbFKxk6Y4wCmcECwC2 H7fgk/DBKGVcgjeeDZA3hL86BaZkv6C35RwA7uSK75zg90q/wSw/XQ/ctZc+vdvspf0R kVPueUSMZZ7bRHEk2dQ+AAHdIrNiM0pERItJm1HuzX1WESHfvLIFVc955qskFg5dhjl3 KiYA== X-Gm-Message-State: AA6/9RltkLw8Ce2PZfHcdufKHDWVRtwwUU9s92f9CxSaiYgT3NGF4adq2E0WreIMqtn5a9swtTs3JvXcluaeXA== X-Received: by 10.202.169.199 with SMTP id s190mr14245293oie.144.1475801686197; Thu, 06 Oct 2016 17:54:46 -0700 (PDT) In-Reply-To: <83h98rkjt4.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::233 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:111472 Archived-At: Yes, I know eshell is not a real POSIX shell. But I think it should mimic as much as possible as a POSIX shell, or not? If eshell is not expected to simulate a complete POSIX shell, then what is the equivalent of "eval" in POSIX shell that is in eshell? On Wed, Oct 5, 2016 at 9:28 PM Eli Zaretskii wrote: > > From: Xi Shen > > Date: Wed, 05 Oct 2016 13:14:24 +0000 > > > > I tried it, but I got > > > > eval: external command not found > > > > But I think "eval" is a built-in command, right? It seems eshell try to > execute it as a external command. > > Yes, I just told you how to disable the automatic preference of Lisp > functions in this case. > > As for invoking the shell's built-in: what exactly do you expect that > to do, when you invoke shell's 'eval' from within Eshell? Eshell is > not a Posix shell. > > -- Thanks, David S.