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
Sure, I can help you replace the FIFO with the
=()syntax in the given example. The=()syntax creates a temporary file instead of a named pipe, which can be useful in certain situations as described in the provided documentation. Here's how you can modify the_fzf_feed_fifofunction to use the=()syntax:bash
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.