zsh-users
 help / color / mirror / code / Atom feed
* permission denied
@ 2023-04-17 18:34 Ray Andrews
  2023-04-17 19:07 ` Roman Perepelitsa
  0 siblings, 1 reply; 20+ messages in thread
From: Ray Andrews @ 2023-04-17 18:34 UTC (permalink / raw)
  To: Zsh Users

So, now having my 'chain' variable and experimenting with using it as a 
command, I run into this problem with any of my functions, like 'l' here:

  % chain=( ls ); $chain

... OK as expected

  % chain=( l ); $chain

zsh: permission denied: l

  % chain=( l ); eval $chain

... works fine.

It seems strange that a perfectly usable function throws 'permission 
denied' used that way.  IIRC there are times when that message is 
misleading, it's not really a permissions issue but something else.  I 
vaguely recall crashing into this before but I can't remember what the  
real reason was.  And why does 'eval' fix it?





^ permalink raw reply	[flat|nested] 20+ messages in thread
* permission denied
@ 2020-12-21 23:01 Ray Andrews
  0 siblings, 0 replies; 20+ messages in thread
From: Ray Andrews @ 2020-12-21 23:01 UTC (permalink / raw)
  To: Zsh Users

     typeset -a files_list=( *(N) )

... That used to work in a function I have to grab a directory listing.  
Now I get the permission denied msg.  It's such terse code that you 
can't hope to google anything about it.  Replacement code using 'ls' 
works fine.   The above is the sort of thing that I don't even know 
where to look in the docs but I do know that it is proper zsh code.


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

end of thread, other threads:[~2023-04-22  0:57 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-17 18:34 permission denied Ray Andrews
2023-04-17 19:07 ` Roman Perepelitsa
2023-04-17 20:41   ` Ray Andrews
2023-04-17 21:52     ` Bart Schaefer
2023-04-17 22:44       ` Ray Andrews
2023-04-18  2:41         ` Bart Schaefer
2023-04-18  3:35           ` Ray Andrews
2023-04-20 21:35             ` Ray Andrews
2023-04-20 21:47               ` Roman Perepelitsa
2023-04-20 22:09                 ` Ray Andrews
2023-04-20 22:13                   ` Bart Schaefer
2023-04-20 22:47                     ` Ray Andrews
2023-04-21  3:12                       ` Bart Schaefer
2023-04-21 13:33                         ` Ray Andrews
2023-04-21 14:12                           ` Peter Stephenson
2023-04-21 14:42                             ` Ray Andrews
2023-04-21 21:58                               ` Bart Schaefer
2023-04-22  0:56                                 ` Ray Andrews
2023-04-20 22:17                   ` Roman Perepelitsa
  -- strict thread matches above, loose matches on Subject: below --
2020-12-21 23:01 Ray Andrews

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).