zsh-workers
 help / color / mirror / code / Atom feed
From: Marlon Richert <marlon.richert@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: [Bug?] zsh -n fails on dynamically named directory syntax
Date: Fri, 18 Jun 2021 10:48:13 +0300	[thread overview]
Message-ID: <CAHLkEDvvGJrO6uC3G5mumndmnH8eK5Uygp0WuPTjdLQmY8hQVg@mail.gmail.com> (raw)

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.


             reply	other threads:[~2021-06-18  7:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-18  7:48 Marlon Richert [this message]
2021-06-22 13:23 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHLkEDvvGJrO6uC3G5mumndmnH8eK5Uygp0WuPTjdLQmY8hQVg@mail.gmail.com \
    --to=marlon.richert@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).