commit eda6228854e3b1efa7cc219d5d00a54a217c7790 parent 3b1b2b7d7b594e7b5453ab985e56c5c3e2c8226b Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Tue, 18 Jun 2019 19:09:43 +0200 Pipe support Diffstat:
| M | README | | | 3 | +++ |
| M | zsh-functions/confz_fileset_init | | | 14 | ++++++++++++++ |
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/README b/README @@ -40,6 +40,9 @@ f<flags> d<flags> create a directory +p<flags> + (not implemented) create FIFO / named pipe + Commands that take two arguments: l<flags><tab><destination> diff --git a/zsh-functions/confz_fileset_init b/zsh-functions/confz_fileset_init @@ -156,6 +156,20 @@ confz_fs_l_do() { } +confz_fs_pipe_check() { + checkvars filename flags + + if [[ $vars[flags] == *p* ]]; then + require fs_p :filename + fi + + require fs_type_or_missing :filename :flags filetype=p + + do_command=( fileset_resetcmd mkfifo -p $vars[filename] ) + fileset_stat $vars[filename] && [[ $fileset_stat_cur_type == p ]] +} + + confz_fs_r_check() { checkvars filename flags do_command=( confz_fs_type_or_missing_do )