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.
This commit is contained in:
parent
83df200475
commit
26844e05e7
@ -58,7 +58,17 @@
|
|||||||
|
|
||||||
|
|
||||||
#define JOBS 0
|
#define JOBS 0
|
||||||
|
|
||||||
|
/* Set SYMLINKS to 0 by request of Giovanni Falzoni, who wrote the
|
||||||
|
* symlink patches for Minix; email to minix-devel-l of thu 3 nov.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if 0
|
||||||
#define SYMLINKS defined(S_ISLNK)
|
#define SYMLINKS defined(S_ISLNK)
|
||||||
|
#else
|
||||||
|
#define SYMLINKS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#define DIRENT 1
|
#define DIRENT 1
|
||||||
#define UDIR 0
|
#define UDIR 0
|
||||||
#define TILDE 1
|
#define TILDE 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user