$NetBSD$

--- src/options.c.orig	2001-05-04 15:36:12.000000000 +0200
+++ src/options.c
@@ -50,7 +50,7 @@ int options_initialize(opt_s *opt) {
 	opt->command_history_size = 20 ;
 	opt->file_history_size = 5 ;
 
-	opt->wdir = my_strdup(getenv("PWD")) ;
+	opt->wdir = getcwd(NULL, 0);
 	opt->wdir = realloc(opt->wdir, strlen(opt->wdir) + 2000) ;
 	strcat(opt->wdir, "/") ;
 
