Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: set -F kills read -t



On Mar 20,  8:49am, Ray Andrews wrote:
}
} Except that we've come in a circle. Try calling it from this alias:
} 
}         alias y='set -F; _y'
} 
} .... back to 'set -F' killing the pipe :-(

It's not the "set" that's killing the pipe, it's the semicolon.  Didn't
we go through this once before?
   
}     $ echo "My love is" | y "as a fever"

The alias expands that into

	echo "My love is" | set -F; _y "as a fever"

so the semicolon ends the pipeline.  Aliases are textual replacements,
not semantic units.  Also with that alias the -F setting will persist
after _y is finished, which I'm sure you didn't intend.

Try it this way:

   alias y='noglob _y'



Messages sorted by: Reverse Date, Date, Thread, Author