Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[Bug?] zsh -n fails on dynamically named directory syntax
- X-seq: zsh-workers 49082
 
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
 
- To: Zsh hackers list <zsh-workers@xxxxxxx>
 
- Subject: [Bug?] zsh -n fails on dynamically named directory syntax
 
- Date: Fri, 18 Jun 2021 10:48:13 +0300
 
- Archived-at: <https://zsh.org/workers/49082>
 
- List-id: <zsh-workers.zsh.org>
 
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