bug-bash
[Top][All Lists]
Advanced

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

Re: \@ in PS1


From: Chet Ramey
Subject: Re: \@ in PS1
Date: Mon, 29 Sep 2003 11:45:51 -0400

> I've read the docs and found out that \@ may act differently for some
> locales. Apparently english is one of those. My question is how do I
> make PS1="[\@ \w] " equal 
> 
> [04:31pm ~]
> 
> instead of
> 
> [04:31 PM ~]

It's up to strftime(3).  Bash uses the `%p' escape, which is replaced
by whatever the locale thinks a.m. or p.m. should be.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@po.cwru.edu    http://tiswww.tis.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]