r1264 - trunk/etc

Alexander E. Patrakov patrakov at gmail.com
Sun Dec 11 23:49:00 PST 2005


justin at linuxfromscratch.org wrote:
> Author: justin
> Date: 2005-12-08 22:43:48 -0700 (Thu, 08 Dec 2005)
> New Revision: 1264
>
> Modified:
>    trunk/etc/bashrc
> Log:
> Merged r1263 (Fix PS1 Date/Time) from 6.1.1-newmake to trunk.
>
> Modified: trunk/etc/bashrc
> ===================================================================
> --- trunk/etc/bashrc	2005-12-09 05:37:14 UTC (rev 1263)
> +++ trunk/etc/bashrc	2005-12-09 05:43:48 UTC (rev 1264)
> @@ -16,9 +16,9 @@
>
>  # Prompt
>  if [ $EUID -eq 0 ] ; then
> -	PS1="$BOLD\h:$RED\u | $BOLD\D{%c} $RED| \w$WHITE\n$BOLD\\$ $WHITE"
> +	PS1="$BOLD\h:$RED\u | $BOLD\`date +%c\` $RED| \w$WHITE\n$BOLD\\$ $WHITE"
>  else
> -	PS1="$BOLD\h:$GREEN\u | $BOLD\D{%c} $GREEN| \w$WHITE\n$BOLD\\$ $WHITE"
> +	PS1="$BOLD\h:$GREEN\u | $BOLD\`date +%c\` $GREEN| \w$WHITE\n$BOLD\\$
> $WHITE" fi
>
>  export PS1

This looks very wrong. Please provide a testcase so that I know what to fix.

-- 
Alexander E. Patrakov



More information about the livecd mailing list