Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 1994 19:11:05 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-hackers@freefall.cdrom.com, rivers%ponds@ncren.net
Subject:   Re: Small problem in nvi.
Message-ID:  <199412220811.TAA00269@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>I've noticed that previous versions of nvi would not "edit"
>directories.

nvi seems to read ufsdirectories OK in 1.1.5.  Elvis refuses to read
them.

nvi has interestingly different behaviour depending on the path used
to reach the directory: for the directory /tmp~ and the symlink /tmp
-> /var/tmp/tmp (all on the same ufs file system), after cd /:

In both 1.1.5 and 2.0:
/usr/bin/vi tmp~:	works, reads the dir
/usr/bin/vi /tmp~:	works, reads the dir
/usr/bin/vi tmp:	works, reads the dir
/usr/bin/vi /tmp:	fails, reads the new file /tmp/vi.00<pid of vi>

In 2.0, with /tmp~ renamed to /tmp:
Same behaviour as for /tmp above.  Renaming the file changed nvi's
behaviour!

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199412220811.TAA00269>