=== modified file 'zsh-functions/confz_fileset_init' --- old/zsh-functions/confz_fileset_init 2021-01-15 16:56:03 +0000 +++ new/zsh-functions/confz_fileset_init 2020-04-02 16:03:29 +0000 @@ -133,8 +133,7 @@ confz_fs_l_check() { - checkvars filename destination - defvar flags '' + checkvars filename flags destination if [[ $vars[flags] == *p* ]]; then require fs_p :filename @@ -160,8 +159,7 @@ confz_fs_device_check() { - checkvars filename device_type major minor - defvar flags '' + checkvars filename flags device_type major minor if [[ $vars[flags] == *p* ]]; then require fs_p :filename @@ -192,8 +190,7 @@ confz_fs_pipe_check() { - checkvars filename - defvar flags '' + checkvars filename flags if [[ $vars[flags] == *p* ]]; then require fs_p :filename @@ -207,8 +204,7 @@ confz_fs_r_check() { - checkvars filename - defvar flags '' + checkvars filename flags do_command=( confz_fs_type_or_missing_do ) ! fileset_stat $vars[filename] } @@ -239,8 +235,7 @@ confz_fs_f_check() { - checkvars filename - defvar flags '' + checkvars filename flags if [[ $vars[flags] == *p* ]]; then require fs_p :filename @@ -258,8 +253,7 @@ confz_fs_d_check() { - checkvars filename - defvar flags '' + checkvars filename flags require fs_type_or_missing :filename :flags filetype=d @@ -274,8 +268,7 @@ confz_fs_c_check() { - checkvars filename content_call - defvar flags '' + checkvars filename flags content_call require fs_f :filename :flags "${(Q@)${(z)vars[content_call]}}" | cmp -s - $vars[filename] } @@ -283,8 +276,3 @@ confz_fs_c_do() { "${(Q@)${(z)vars[content_call]}}" > $vars[filename] } - -confz_fs_contentnl_check() { - checkvars filename content - require fs_c :filename :flags content_call="printf '%s\n' "${(q)vars[content]} -}