help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: --script and --quick


From: Michael Heerdegen
Subject: Re: --script and --quick
Date: Wed, 27 May 2015 14:34:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

saint@eng.it writes:

> *This* is the interpreter (a wrapper for Emacs). Use it for all your
> scripts.

Ah, I see.  Would this have any advantages compared to a --quick-script
option in Emacs when that existed?

>> -------------------------8<--------------------------
> #!/home/saint/bin/esh
> (find-file "paperoga")
> (insert (concat "hello" "world"))
> (save-buffer)
> -------------------------8<--------------------------
>
> This is a script.

Not bad.  Even lexical binding can be used this way (by adding 

;; -*- lexical-binding: t -*-

as second line), and also the argv variable holds the arguments as
expected.


Thanks,

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]