[Linux-Anyway] Re: Update: Bash help?

  • From: Meph Istopheles <Meph@xxxxxxxxxx>
  • To: Linux-Anyway@xxxxxxxxxxxxx
  • Date: Sat, 20 Nov 2004 13:45:51 -0800 (PST)

> Sorry, that should have been:

> $ PS1="\w \D{%I.%M %p} \$ "
> ~ 10.21 pm $

   Hmm.  While man bash implies that \D will give non-military 
time, it wasn't.  So, I put in "%I" &, as it's 1.44pm here, I 
got:

01.44pm

   Why would it display two digits in the hour spot if it's only 
a single digit time?

   I'm looking for ways round this:-\.

-- 
   Experience varies directly with equipment ruined.
To unsubcribe send e-mail with the word unsubscribe in the body to:   
Linux-Anyway-Request@xxxxxxxxxxxxx?body=unsubscribe

Other related posts: