JP Vossen on 29 Sep 2016 21:28:05 -0700

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] bash 4.4 news

On 09/20/2016 01:02 AM, Christopher Barry wrote:
The new bash has some cool options

after installing it, do
man bash
then search for this:
/\ \ \ +Parameter\ +transformation

neat new variable manipulators, like
testarray=(this is my array)
echo ${testarray[@]@Q}
'this' 'is' 'my' 'array'

echo "${testarray[@]@A}"
declare -a testarray=([0]="this" [1]="is" [2]="my" [3]="array")

echo "${testvar2@E}"
this    is      my      var
or, echo without quotes
this is my var

plus readarray now allows any delimiter with -d now.

FYI, I finally got the bash 4.4 and readline 7.0 bits up in

--  -------------------------------------------------------------------
JP Vossen, CISSP | |
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --