Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: RMSTARSILENT
- X-seq: zsh-workers 9915
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: RMSTARSILENT
- Date: Mon, 28 Feb 2000 19:12:53 +0000
- In-reply-to: <200002281308.OAA03686@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200002281308.OAA03686@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Feb 28, 2:08pm, Sven Wischnowsky wrote:
} Subject: PATCH: RMSTARSILENT
}
} ... or, more precisely, getquery() and noquery().
}
} Doing `rm *' didn't work for me any more because getquery() always
} retunred immediatly with `n'.
}
} #ifdef FIONREAD
} ioctl(SHTTY, FIONREAD, (char *)&val);
} if (purge) {
} while(val--)
} read(SHTTY, &c, 1);
} }
} #endif
}
} So, with FIONREAD and purge!=0, we always returned -1. That was wrong,
} wasn't it?
Oops, yes. I meant to write "if (purge && val)". Sorry about that.
Your fix is of course equivalent.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author