View Single Post
  #3   (View Single Post)  
Old 18th October 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

Under the OpenBSD ksh the following works
Code:
PS1="\$(date +'%H:%M:%S')"  
23:24:31
23:24:35
23:24:35sleep 60
23:25:44
23:29:23
23:29:52
Instead of using backticks, I use the $( ..... )construct. To prevent it from executing at read/compile time, the leading dollar sign is escaped with a '\'.
Because '\' only works when the shell gets to interpret it, double quotes (") were used instead of single quotes (').
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote