Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[Bug?] zsh -n fails on dynamically named directory syntax



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.




Messages sorted by: Reverse Date, Date, Thread, Author