bin/89410: [PATCH] sh(1) missing \u interpolation and bug/fix
in \W
Jilles Tjoelker
jilles at stack.nl
Wed Feb 1 15:00:35 PST 2006
The following reply was made to PR bin/89410; it has been noted by GNATS.
From: Jilles Tjoelker <jilles at stack.nl>
To: bug-followup at FreeBSD.org, bsd at rubyforge.org
Cc:
Subject: Re: bin/89410: [PATCH] sh(1) missing \u interpolation and bug/fix in \W
Date: Wed, 1 Feb 2006 23:58:10 +0100
Some comments about the patch:
- You should not call getpwuid() for every prompt, perhaps use $USER
instead for the \u expansion
- \w/\W should use more something like $PWD (leave the symlinks) and
just compare with $HOME (bash3 does the same). This needs wider
changes over the code though.
- The code in HEAD seems to have some other bugfixes since you patched
it.
- Your dot.shrc patch looks way too redhatty :P
--
Jilles Tjoelker
More information about the freebsd-bugs
mailing list