emacs - How to write eshell script? -


there. i'm new eshell,and come problem how can script it. i've tried (rm ~/somefile) , worked.so every command this?how should write conditional code , loop?and should customize make system execute script using eshell other others ,like bash,by default? i'm not @ english,and hope can understand mean.i'll appreciate correction english expression?

you can call elisp command/function/operator eshell; suppose means can script using elisp (see gnu emacs lisp reference manual). example:

 welcome emacs shell  ~ $ (defun foo (n) (if (= 0 (mod n 2)) "even." "odd!")) foo ~ $ foo 2 even. ~ $ foo 3 odd! ~ $  

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -