From: Ben Gras Date: Thu, 3 Nov 2005 15:25:18 +0000 (+0000) Subject: From: Giovanni X-Git-Tag: v3.1.2a~525 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/expt.png?a=commitdiff_plain;h=26844e05e7094b415010d2724b564faff20730e5;p=minix.git From: Giovanni To: Ben Gras 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. --- diff --git a/commands/ash/shell.h b/commands/ash/shell.h index 690c92d92..04d59f5a1 100755 --- a/commands/ash/shell.h +++ b/commands/ash/shell.h @@ -58,7 +58,17 @@ #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) +#else +#define SYMLINKS 0 +#endif + #define DIRENT 1 #define UDIR 0 #define TILDE 1