[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
i cant see whats the issue, .. ps1 + propt command + date
From: |
Alex fxmbsw7 Ratchev |
Subject: |
i cant see whats the issue, .. ps1 + propt command + date |
Date: |
Thu, 23 Sep 2021 10:48:46 +0200 |
i got prompt changing code, in which i wished to also display a ( non
updating date )
i wrote the following code in $PROMPT_COMMAND
but the second element of prptnow2 ( by epochrealtime dot subsecond )
doesnt seem to exist any
the final $prptnow3 string is correctly formatted but the +=.<here> doesnt
append anything
also in term i tried declare -p prptnow2 and funkily it tells me it doesnt
exist
.. does anyone see anything obvious i miss here .. ?
prptnow=$EPOCHREALTIME saveIFS IFS=. prptnow2=( $prptnow ) restoreIFS \
dfslist=$( prptrecents )
printf -v prptnow3 '%(%F , %T)T' $prptnow2
prptnow3+=.${prptnow2[1]}
- i cant see whats the issue, .. ps1 + propt command + date,
Alex fxmbsw7 Ratchev <=
- Re: i cant see whats the issue, .. ps1 + propt command + date, Greg Wooledge, 2021/09/23
- Re: i cant see whats the issue, .. ps1 + propt command + date, Alex fxmbsw7 Ratchev, 2021/09/23
- Re: i cant see whats the issue, .. ps1 + propt command + date, Greg Wooledge, 2021/09/23
- Re: i cant see whats the issue, .. ps1 + propt command + date, Alex fxmbsw7 Ratchev, 2021/09/23
- Re: i cant see whats the issue, .. ps1 + propt command + date, Greg Wooledge, 2021/09/23
- Re: i cant see whats the issue, .. ps1 + propt command + date, Alex fxmbsw7 Ratchev, 2021/09/23
- Re: i cant see whats the issue, .. ps1 + propt command + date, Alex fxmbsw7 Ratchev, 2021/09/23
- Re: i cant see whats the issue, .. ps1 + propt command + date, Alex fxmbsw7 Ratchev, 2021/09/25
- Re: i cant see whats the issue, .. ps1 + propt command + date, Alex fxmbsw7 Ratchev, 2021/09/25
- Re: i cant see whats the issue, .. ps1 + propt command + date, Alex fxmbsw7 Ratchev, 2021/09/25