Ruby / simple multiline parsing with embedded single and double quotes

t = " hello 'there ok \"ho\nhh\" ' ciao \"eeee \" \" yessss 'aaa' \" %%55+ "


p t.shellsplit

=> ["hello", "there ok \"ho\nhh\" ", "ciao", "eeee ", " yessss 'aaa' ", "%%55+"]