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

Re: [SUBMIT] _ant completion function



On Aug 18,  3:45am, Byron Foster wrote:
} Subject: Re: [SUBMIT] _ant completion function
}
} > It's nearly 100% pure zsh with the exception that sed is called to strip
} > \r's from the output
} 
} target=${target//^M/}
} 
} Where ^M is a quoted insert of the single Cariage Return character 

target=${target//$'\015'}

where you don't need to quoted insert anything.  And yes, the ending slash
is optional when the replacement is empty.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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