Message178112
| Author |
ned.deily |
| Recipients |
agiz, ned.deily, ronaldoussoren |
| Date |
2012年12月25日.06:11:36 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1356415898.13.0.770888587239.issue16768@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
What you are seeing is platform-specific behavior, a difference between BSD-based systems including OS X and other systems including Linux. The difference is that the former systems support the DSUSP (suspend on reading input) terminal character in addition to the normal SUSP (suspend immediately) terminal character. The default value for DSUSP is CTRL-Y which you can see in the output of stty(1):
$ stty -a
[..]
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
stop = ^S; susp = ^Z; time = 0; werase = ^W;
You should see the same CTRL-Y suspend behavior with other utilities reading from standard input, like cat(1), unless they handle that signal. You can modify the behavior of CTRL-Y by disabling the DSUSP character, for example:
$ stty dsusp undef
See the OS X stty(1) man page and other references like:
http://www.gnu.org/software/libc/manual/html_node/Signal-Characters.html |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年12月25日 06:11:38 | ned.deily | set | recipients:
+ ned.deily, ronaldoussoren, agiz |
| 2012年12月25日 06:11:38 | ned.deily | set | messageid: <1356415898.13.0.770888587239.issue16768@psf.upfronthosting.co.za> |
| 2012年12月25日 06:11:37 | ned.deily | link | issue16768 messages |
| 2012年12月25日 06:11:36 | ned.deily | create |
|