zsh-workers
 help / color / mirror / code / Atom feed
* [Bug?] zsh -n fails on dynamically named directory syntax
@ 2021-06-18  7:48 Marlon Richert
  2021-06-22 13:23 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Marlon Richert @ 2021-06-18  7:48 UTC (permalink / raw)
  To: Zsh hackers list

Given
* a script "foo.zsh" containing
    source bar.zsh
    print ~[foo]
* a script "bar.zsh" that sets up dynamically named dirs, but which
has _not_ been sourced in the current shell

When
* I do `zsh -n foo.zsh`

Then
* Command fails with
    foo.zsh:2: no directory expansion: ~[foo]

Expected behavior:
* I would expect `zsh -n foo.zsh` to succeed here, since the syntax in
foo.zsh is entirely valid.


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

end of thread, other threads:[~2021-06-22 13:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18  7:48 [Bug?] zsh -n fails on dynamically named directory syntax Marlon Richert
2021-06-22 13:23 ` Peter Stephenson

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