* Not finding named directories in subshells
@ 2007-12-13 17:01 Mikael Magnusson
2007-12-13 17:19 ` Stephane Chazelas
0 siblings, 1 reply; 5+ messages in thread
From: Mikael Magnusson @ 2007-12-13 17:01 UTC (permalink / raw)
To: zsh-workers
{17:56:22|~}% cd ~pastebot/html
{17:56:23|~pastebot/html}% zsh
{17:56:25|/home/pastebot/html}% cd .
{17:56:27|/home/pastebot/html}% cd $PWD
{17:56:29|/home/pastebot/html}% cd ..
{17:56:31|/home/pastebot}% cd ../pastebot
{17:56:33|/home/pastebot}% cd /home/pastebot
{17:56:36|/home/pastebot}% cd ~pastebot
{17:56:36|~pastebot}%
Putting hash -d -f in .zshenv fixes it, is this expected behaviour?
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Not finding named directories in subshells
2007-12-13 17:01 Not finding named directories in subshells Mikael Magnusson
@ 2007-12-13 17:19 ` Stephane Chazelas
2007-12-13 17:39 ` Mikael Magnusson
0 siblings, 1 reply; 5+ messages in thread
From: Stephane Chazelas @ 2007-12-13 17:19 UTC (permalink / raw)
To: Mikael Magnusson; +Cc: zsh-workers
On Thu, Dec 13, 2007 at 06:01:03PM +0100, Mikael Magnusson wrote:
> {17:56:22|~}% cd ~pastebot/html
> {17:56:23|~pastebot/html}% zsh
> {17:56:25|/home/pastebot/html}% cd .
> {17:56:27|/home/pastebot/html}% cd $PWD
> {17:56:29|/home/pastebot/html}% cd ..
> {17:56:31|/home/pastebot}% cd ../pastebot
> {17:56:33|/home/pastebot}% cd /home/pastebot
> {17:56:36|/home/pastebot}% cd ~pastebot
> {17:56:36|~pastebot}%
>
> Putting hash -d -f in .zshenv fixes it, is this expected behaviour?
[...]
See the description of the auto_name_dirs option in the manual
AUTO_NAME_DIRS
Any parameter that is set to the absolute name of a directory
immediately becomes a name for that directory, that will be used
by the `%~' and related prompt sequences, and will be available
when completion is performed on a word starting with `~'.
(Otherwise, the parameter must be used in the form `~PARAM' first.)
Cheers,
Stephane
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Not finding named directories in subshells
2007-12-13 17:19 ` Stephane Chazelas
@ 2007-12-13 17:39 ` Mikael Magnusson
2007-12-13 17:47 ` Peter Stephenson
0 siblings, 1 reply; 5+ messages in thread
From: Mikael Magnusson @ 2007-12-13 17:39 UTC (permalink / raw)
To: zsh-workers
On 13/12/2007, Stephane Chazelas <stephane_chazelas@yahoo.fr> wrote:
> On Thu, Dec 13, 2007 at 06:01:03PM +0100, Mikael Magnusson wrote:
> > {17:56:22|~}% cd ~pastebot/html
> > {17:56:23|~pastebot/html}% zsh
> > {17:56:25|/home/pastebot/html}% cd .
> > {17:56:27|/home/pastebot/html}% cd $PWD
> > {17:56:29|/home/pastebot/html}% cd ..
> > {17:56:31|/home/pastebot}% cd ../pastebot
> > {17:56:33|/home/pastebot}% cd /home/pastebot
> > {17:56:36|/home/pastebot}% cd ~pastebot
> > {17:56:36|~pastebot}%
> >
> > Putting hash -d -f in .zshenv fixes it, is this expected behaviour?
> [...]
>
> See the description of the auto_name_dirs option in the manual
>
> AUTO_NAME_DIRS
> Any parameter that is set to the absolute name of a directory
> immediately becomes a name for that directory, that will be used
> by the `%~' and related prompt sequences, and will be available
> when completion is performed on a word starting with `~'.
> (Otherwise, the parameter must be used in the form `~PARAM' first.)
I don't see how this has anything to do with my issue though.
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Not finding named directories in subshells
2007-12-13 17:39 ` Mikael Magnusson
@ 2007-12-13 17:47 ` Peter Stephenson
2007-12-13 17:55 ` Mikael Magnusson
0 siblings, 1 reply; 5+ messages in thread
From: Peter Stephenson @ 2007-12-13 17:47 UTC (permalink / raw)
To: zsh-workers
"Mikael Magnusson" wrote:
> I don't see how this has anything to do with my issue though.
If you don't have the option set to name directories automatically, then
they're not automatically named. They become named when referred to
with a ~ in front.
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Not finding named directories in subshells
2007-12-13 17:47 ` Peter Stephenson
@ 2007-12-13 17:55 ` Mikael Magnusson
0 siblings, 0 replies; 5+ messages in thread
From: Mikael Magnusson @ 2007-12-13 17:55 UTC (permalink / raw)
To: zsh-workers
On 13/12/2007, Peter Stephenson <pws@csr.com> wrote:
> "Mikael Magnusson" wrote:
> > I don't see how this has anything to do with my issue though.
>
> If you don't have the option set to name directories automatically, then
> they're not automatically named. They become named when referred to
> with a ~ in front.
But these are home directories of users, when I go there in the
"parent" shell, it works fine. Besides, setting the option doesn't fix
it. But I see now that subshells aren't special, it behaves in the
same way in the parent shell. So I guess I just want the hash -d -f in
my .zshenv after all.
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-12-13 17:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-13 17:01 Not finding named directories in subshells Mikael Magnusson
2007-12-13 17:19 ` Stephane Chazelas
2007-12-13 17:39 ` Mikael Magnusson
2007-12-13 17:47 ` Peter Stephenson
2007-12-13 17:55 ` Mikael Magnusson
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).