Lines Matching full:last
269 # We need to know the index of the last element before we
271 local last=$(( ${#words[@]} - 1 ))
280 if [[ ${words[$last]} =~ ^[0-9a-f]+\] ]]; then
281 words[$last-1]="${words[$last-1]} ${words[$last]}"
282 unset words[$last] spaces[$last]
283 last=$(( $last - 1 ))
292 if [[ ${words[$last]} =~ \([A-Z]*\) ]]; then
293 info_str=${words[$last]}
294 unset words[$last] spaces[$last]
295 last=$(( $last - 1 ))
298 if [[ ${words[$last]} =~ \[([^]]+)\] ]]; then
299 module=${words[$last]}
310 symbol=${words[$last-1]}
311 unset words[$last-1] spaces[$last-1]
313 # The symbol is the last element, process it
314 symbol=${words[$last]}
319 unset words[$last]
326 echo "${spaces[$last]}${symbol}${module:+ ${module}}${info_str:+ ${info_str}}"