Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zed shebang and typo ?



I really enjoyed using zed as my favorite "open mode" editor!
I just regret that it has not a valid shebang by default to be run
directly by other processes than zsh (for example as ui.editor in
mercurial).

I don't know if it's a reasonable demand to add a sheband in standard release?
Note that is clearly not a blocker since we can always use a short
wrapper script instead.

Another thing: zed script has maybe a typo inside that doesn't seem to
get fixed in cvs
(http://zsh.cvs.sourceforge.net/viewvc/*checkout*/zsh/zsh/Functions/Misc/zed).


I would like to take the opportunity of this email to thank all the
zsh developpers and people of the list
Cordially,
--- zed.orig	2010-01-29 20:20:24.000000000 +0100
+++ zed	2010-01-29 20:22:14.000000000 +0100
@@ -1,4 +1,4 @@
-#
+#!/bin/zsh
 # zed
 #
 # No other shell could do this.
@@ -74,7 +74,7 @@
   var="$(functions $1)"
   # If function is undefined but autoloadable, load it
   if [[ $var = *\#\ undefined* ]] then
-      ar="$(autoload +X $1; functions $1)"
+    var="$(autoload +X $1; functions $1)"
   elif [[ -z $var ]] then
     var="$1() {
 }"


Messages sorted by: Reverse Date, Date, Thread, Author