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

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

Re: How to rename files to numbers in Eshell?


From: Jean Louis
Subject: Re: How to rename files to numbers in Eshell?
Date: Sat, 25 Sep 2021 16:43:34 +0300
User-agent: Mutt/2.0.7+183 (3d24855) (2021-05-28)

> > I have transcribed almost anything I used to do in Bash to
> > Emacs Lisp. For example image resizing with external
> > `mogrify'
> 
> Holy cow, lucky me I don't think like that as I have 100+ zsh
> to (if so) translate into Elisp ... [1]
> 
> I don't think it is a matter of Elisp being less or more wordy
> (but interestingly Elisp and Lisp in general is very wordy
> while shell script languages and zsh in particular has
> a syntax that is extremely compact and cryptic) - so while it
> isn't about that (here), it is rather about where you are and
> what you do. Elisp for editing files and inputting text and
> shell languages for all work in/from the filesystem.

When personal Emacs environment develops than it becomes rather
tedious to do it in Bash when there are many prepared and ready
functions from Emacs Lisp. The more environment is developed and user
knows about it, the easier it becomes to think with Emacs handling
stuff that common users would otherwise handle with the shell.

> > There are more functions available to Emacs Lisp than to
> > Bash, re-usability in Emacs Lisp is so much higher.
> 
> You are aware that there are other shells than Bash?

Sure, like eshell. ;-)

I would use any program if it satisfies the purpose. Within `mutt'
email client I will use `fzf' and `psql' to choose some items from the
database and completion and tabulated list mode to choose items from
within Emacs. So it really does not matter. What user knows or prefers
personal and what is more useful shall be first chosen.

> Also, shell programming doesn't rely on functions half as much
> as does well, functional programming like Lisp.

If you don't rely, then don't, otherwise Bash script can be developed
very similar to Emacs lisp with a lot of reusable functions.


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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