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

Re: kill and pid files



On Jun 18, 12:25am, Robert Stone wrote:

: 	I find myself using "kill -HUP $(cat /var/run/<program>.pid)"

Isn't it more preferable to use $(< /var/run/<program>.pid) ?
This would bypass running cat, and certainly speed up your function by
using zsh's internal file reading.

Feel free to correct me if I'm wrong :)



-- 
Wez - Electronics Undergraduate at the University of York
URL : http://www.twinklestar.demon.co.uk/

Insult Of The Day: Thou dissembling fool-born miscreant!



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