can u give an example on how would replace the fifo with a =() syntax ? fzffeedfifo() (…
- User
can u give an example on how would replace the fifo with a =() syntax ?
_fzf_feed_fifo() ( command rm -f "1" cat <&0 > "$1" & )
_fzf_complete() { setopt localoptions ksh_arrays
Split arguments around --
local args rest str_arg i sep args=("@") sep= for i in {0..{#args[@]}}; do if [[ "{args[i]-}" = -- ]]; then sep=sep" ]]; then str_arg= rest=("((sep + 1)):{args[@]:0:1 args=() shift rest=("$@") fi
Assistant
To replace the use of
mkfifoand<()(which creates a FIFO for inter-process communication) with=(...), you need to create a temporary file and pass its name to the function, which can then read from it as if it were a regular file. Here's how you might modify_fzf_feed_fifoand_fzf_completefunctions:bash
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.