Off-off topic for Debian User lists. On 29/11/13 14:42, Albretch Mueller wrote: > #!/bin/bash > > _DT=$(date +%Y:%m:%d:%H:%M:%S)
OK... > echo "// __ \$_DT: $_DT" Huh? Is there a point to that exercise (print gibberish to screen)? $_DT remains $(date +%Y:%m:%d:%H:%M:%S) [wave of diziness] > SavedIFS="$IFS" Hu-uh? So now $SavedIFS = "".... Is the point to this a troll. Are you trolling? Because $IFS hasn't been initialised.... [wipes trickle of blood from ear] > IFS=":" OK... this is just, um, bizarre. $IFS remains empty. This *is* a troll right? > _dpvals_arr=( $_DT ) # date place values Can I suggest a one line solution to this? - all that bizarre contortionism could be avoided with:- _dpvals_arr=$(date +Y) Unless your point was *not* to make $_dpvals_arr == 2013 You do have a point right? > echo "// __ total numbers: ${#_dpvals_arr[@]}" 2+0+1+3=6 <snipped> Can't help you. Regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5298147d.20...@gmail.com