]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: Use $PWD instead of getcwd() for the \w and \W prompt expansions.
authorjilles <jilles@FreeBSD.org>
Fri, 2 Jul 2010 22:17:13 +0000 (22:17 +0000)
committerjilles <jilles@FreeBSD.org>
Fri, 2 Jul 2010 22:17:13 +0000 (22:17 +0000)
commit4ae2ec7aa4df862de8d4d8b6c37efa9815655a4a
tree008589aee3a3ae7ac42196f6f39b1801d99837a0
parent4802d158ef9f040cd3ed205c672e9bd66c031e3d
sh: Use $PWD instead of getcwd() for the \w and \W prompt expansions.

This ensures that the logical working directory (which may include
symlinks) is shown and is similar to the default behaviour of the pwd
builtin.
bin/sh/parser.c