Re: bash 3.1 gotcha

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Once upon a time, Callum Lerwick <seg@xxxxxxxxxx> said:
> For many years, I have had a fancy bash prompt, that contains this:
> ${PWD/#$HOME/~} This replaces your home dir with a tilde. However, with
> bash 3.1, it stopped working:

Why not just use the bash PS1 "\w" escape which does the same thing?
Much easier and won't break (unless there's a bug).  See the PROMPTING
secion of the bash man page.
-- 
Chris Adams <cmadams@xxxxxxxxxx>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux