if (($#)); then local data sha256sum data=${(j::)${(oq)@}} sha256sum=$(sha256sum <<<$data) || die sha256sum=${sha256sum%% *} printf '%s' $data >meta/$sha256sum || die printf '%s' $sha256sum || die else echo -n '%' fi # vim: fileencoding=utf8 ft=zsh noet sw=4 ts=4 sts=4