From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Start Emacs with a minimal bash and Emacs lisp mixed script for testing. Date: Wed, 4 Aug 2021 08:56:54 +0800 Message-ID: References: <87y29ijzfg.fsf@zoho.eu> <87tuk6jysk.fsf@zoho.eu> <878s1ijbdw.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25929"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 04 02:58:04 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mB5ER-0006VY-O4 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Aug 2021 02:58:03 +0200 Original-Received: from localhost ([::1]:44644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mB5EQ-0002HH-IG for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Aug 2021 20:58:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mB5Da-0002D0-Mh for help-gnu-emacs@gnu.org; Tue, 03 Aug 2021 20:57:10 -0400 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:45887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mB5DY-00079W-QM for help-gnu-emacs@gnu.org; Tue, 03 Aug 2021 20:57:10 -0400 Original-Received: by mail-lf1-x130.google.com with SMTP id g13so1509538lfj.12 for ; Tue, 03 Aug 2021 17:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Bft263aa3TIPwSgAZgwx+9Vo/2w4SVRaPvdHm/CsJ6M=; b=NaAzPEWqB+wYlAWV4XOi5tXs8j/2tly5FoZ+xZY7RT5ZCNi5/q4yX+QcasWgxmDJlw jToYs8ulZyafIe45gRpnXgxXjF+5+Wn7x8TgDFjoWmQfgDubGYiZk946oNyl868nZshI 6ujc2KFrP3DQeTu3MKIxsWbtQsA7Qw6bzBoF7IIxqYiqOneAFYBzf4UofG6rPqFr5P6v 0J0RgCMpBxlEL9zBIo0BC5dwfNHtn/pkkGjMuqsI8Ycq3NkGhW5rUkwtLYwb0ItWi+RU TibNAflY3pPqukFnfSpjFVdh1VG3Y+tj8Hjh0Unt38fYpaAETE68NG5/YyKuEOFhwFuq 2NXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Bft263aa3TIPwSgAZgwx+9Vo/2w4SVRaPvdHm/CsJ6M=; b=UijOFExg8nTm4jc8Ehx+uCnpUU7W5Z1BAO/+A3DvlN89JcRBAOnbfTJMjC6jxkMlYi UybRp/nv8COEbDondb6CpTl881n1V68AH2qFUKfwpf0lUAoKovxUg+BX8SOkSQG7+x+t RIVGIH+PAlCkR9UN+R9cpJrMHKUMl/D968fcVd4+FjJ9DqdAT+6jLJar9fB6MCCmV3JV yeGINbKE+ogixmju/89UiJkGymZt6wvq46GuQFzOiTv495lPdV7CnoM1H00J38trYPnt faoR6bHYHu+0xEMaARivxF3JDxMsRMthk6JSM9TbTQUs4ATxdl3te66LJir0vG5HVeVD 1uBw== X-Gm-Message-State: AOAM531kDYp3tTisBWtij//gfY8U1IzPdlZqpFUXxzqOB0QG9JElLxhr OoVTxFuAlHCv35FJZomT3ZNLEqjhYHa9ErWVJWg= X-Google-Smtp-Source: ABdhPJzVKJATErLQZVkxqPzR0LdOJkKOnw92wcCZDL9ZoxpQVfCUpeAhPXq/yrQb762XuDy1x4BVZdFM8DwPvwURmtY= X-Received: by 2002:a05:6512:ba9:: with SMTP id b41mr9161116lfv.231.1628038626550; Tue, 03 Aug 2021 17:57:06 -0700 (PDT) In-Reply-To: <878s1ijbdw.fsf@zoho.eu> Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132354 Archived-At: On Wed, Aug 4, 2021 at 8:34 AM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Hongyi Zhao wrote: > > > Another question: how to do the same job with the `--script' > > option of Emacs? I've tried with the following command, but > > failed to start Emacs: > > > > :; emacs -Q --script $(realpath -e $0); exit > > #! /bin/zsh > > ; emacs -Q --script "$(realpath -e $0)"; exit This can also be written as: ; exec emacs -Q --script "$(realpath -e $0)" See for more detailed discussion. > (message "what's up what's up wanna party or what say Should be: (message "what's up what's up wanna party or what say") Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province