Lines Matching full:last
269 # We need to know the index of the last element before we
271 local last=$(( ${#words[@]} - 1 ))
286 if [[ ${words[$last]} =~ \([A-Z]*\) ]]; then
287 info_str=${words[$last]}
288 unset words[$last] spaces[$last]
289 last=$(( $last - 1 ))
294 if [[ ${words[$last]} =~ ^[0-9a-f]+\] ]]; then
295 words[$last-1]="${words[$last-1]} ${words[$last]}"
296 unset words[$last] spaces[$last]
297 last=$(( $last - 1 ))
300 if [[ ${words[$last]} =~ \[([^]]+)\] ]]; then
301 module=${words[$last]}
312 symbol=${words[$last-1]}
313 unset words[$last-1] spaces[$last-1]
315 # The symbol is the last element, process it
316 symbol=${words[$last]}
321 unset words[$last]
328 echo "${spaces[$last]}${symbol}${module:+ ${module}}${info_str:+ ${info_str}}"