Subject: Bug in syntax check
From: Felipe Contreras <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Sat, 04 Jun 2016 05:13:54 +0000
List-Id: Zsh Workers List <zsh-workers.zsh.org>

Hi,

The following script works fine, but when run with 'zsh -n' the syntax
checker returns an error:

6: no such user or named directory: tmp

Ideally the checker should know that the named directory was set in the
same script (it doesn't check the ones in the environment either), but at
the very least it shouldn't check the named directories at all.

It's better to not check anything that throw bad errors.

Cheers.

---

#!/bin/zsh

emulate sh

hash -d tmp=/tmp
hash -d test=~tmp/test

echo ~test
-- 
Felipe Contreras