zsh-users
 help / color / mirror / code / Atom feed
* Zsh Rosetta Stone / ExplainShell equivalent
@ 2021-11-24  2:58 Zach Riggle
  2021-12-01  5:22 ` Daniel Shahaf
  2021-12-01 17:26 ` zzapper
  0 siblings, 2 replies; 6+ messages in thread
From: Zach Riggle @ 2021-11-24  2:58 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 961 bytes --]

Has anybody written a "zsh wtf" style tool where a complex expression is
annotated, similar to "explainshell.com"?

The more I learn about Zsh, the more obscure and hard-to-read my code is.

$ command date
Tue Nov 23 20:17:53 CST 2021


$ ls -la *(.Dmm-3)
-rw-r--r-- 1 zachriggle staff 0 Nov 23 20:17 file_10
-rw-r--r-- 1 zachriggle staff 0 Nov 23 20:15 file_8
-rw-r--r-- 1 zachriggle staff 0 Nov 23 20:16 file_9


Is definitely very convenient -- but only if you know what's going on.
Other, more documented commands can achieve roughly the same thing.


$ find . -Bmin -3 -type f -maxdepth 1 | xargs ls -la
-rw-r--r--  1 zachriggle  staff  0 Nov 23 20:17 ./file_10
-rw-r--r--  1 zachriggle  staff  0 Nov 23 20:15 ./file_8
-rw-r--r--  1 zachriggle  staff  0 Nov 23 20:16 ./file_9


Is there any interest in something like ExplainShell or ShellCheck for
Zsh?  I'm not sure what tools are best fit for parsing things like
complicated expressions.

*Zach Riggle*

[-- Attachment #2: Type: text/html, Size: 2118 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-12-01 19:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-24  2:58 Zsh Rosetta Stone / ExplainShell equivalent Zach Riggle
2021-12-01  5:22 ` Daniel Shahaf
2021-12-01 17:26 ` zzapper
2021-12-01 18:40   ` Bart Schaefer
2021-12-01 18:52     ` david rayner
2021-12-01 19:38       ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).