]> Zhao Yanbai Git Server - minix.git/commit
From: Giovanni <gfalzoni@inwind.it>
authorBen Gras <ben@minix3.org>
Thu, 3 Nov 2005 15:25:18 +0000 (15:25 +0000)
committerBen Gras <ben@minix3.org>
Thu, 3 Nov 2005 15:25:18 +0000 (15:25 +0000)
commit26844e05e7094b415010d2724b564faff20730e5
treedd8f10c7268b65a39da0d3a7f2e56d2fb7a6a52d
parent83df200475a9772684e14ad4d633aafcc2be855f
From: Giovanni <gfalzoni@inwind.it>
To: Ben Gras <beng@few.vu.nl>
Date: Wed, 02 Nov 2005 19:05:13 +0100
Subject: Re: [Minix-devel-l] Symbolic link

Using an alias for cd to set the prompt to display the current path
breaks the cd command.  I use in .ashrc:
PS3=$PS1
hostname=$(expr `cat /etc/hostname.file` : '\([^.]*\)')
cd() {          ## shows current directory as prompt
   command cd "$@"
   PS1="$PS3$USER@$hostname:`pwd` > "
}

If you change the macro in shell.h to:
#define SYMLINKS  0
the correct behaviour is restored.  Could you verify?
I think that the ash package needs the patch.
commands/ash/shell.h