[PATCH 2/3] hust_test: Add missing PWD variable and improvechecking mechanism

Cathey, Jim jcathey at ciena.com
Thu Sep 10 16:42:39 UTC 2009


>I do not propose to make PWD=/path to do "cd /path".
>I merely say that interpreting \w in PS1 as "insert $PWD here"
>is more confusing than "insert current dir here".

I see.  It is probably that $PWD is generally useful
for more than just as a component of PS1.  Historically
it probably predates use in PS1.  (Personally, I don't
like putting it in PS1, my PS1 tends to be "$ ".)  Also,
where would \w come from but a variable of some sort?
(Getting the true pwd is/was an expensive exercise.)
If a variable, and there already is one namely PWD,
why introduce yet another one that can't be (mistakenly)
changed by the foolish?  Let the foolish shoot
themselves, I always say.

-- Jim






More information about the busybox mailing list