[indiana-discuss] Code review request
Roland Mainz
roland.mainz at nrubsig.org
Thu Jan 31 21:09:06 PST 2008
David.Comay at Sun.COM wrote:
> > 3. AFAIK the "\\w" can be replaced with "\$PWD" (or "\${PWD}") - making
> > this more portable (e.g. it should work with bash and ksh93)
>
> One reason to use "\\w" is that it will print tilde (~) for the home
> directory or subdirectories under that. ${PWD} will expand to the full
> path which is both a lot more verbose and seems different from that
> other vendors do.
Mhhh.... right. Try "${PWD/${HOME}/\~}" then...
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 7950090
(;O/ \/ \O;)
More information about the indiana-discuss
mailing list