Consider:
$ getfacl somefile.dat # The output is formatted and contains several new lines..
# file: somefile.dat
# owner: user1
# group: group1
user::rw-
group::r-- #effective:r--
mask:r--
other:r--
$
$ ACL_PERMISSIONS=$(getfacl somefile.dat);
$ echo $ACL_PERMISSIONS;
# file: somefile.dat # owner: user1 # group: group1 user::rw- group::r-- #effective:r-- mask:r-- other:r--
So how do I preserve these new lines during variable assignment, so that when I echo $ACL_PERMISSIONS I get the same output as $ getfacl somefile.dat ..?