因为它们对不必要和不欢迎的系统。
You should take a look at your stty
settings too. There are options to handle NL/CR mapping on input and output. On a Linux box, stty -a
said:
speed 9600 baud; rows 65; columns 120; line = 0;
intr = ^C; quit = ^; erase = ^?; kill = ^X; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q;
stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -cdtrdsr
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
Note -ocrnl
, onlcr
, -onocr
, -onlret
, -inlcr
, -igncr
, -icrnl
in particular.
仔细看看看看他们的情况。 如果你保持目前停机坪环境,你可以试验:
saved_tty_settings=$(stty -g)
...tinker with the settings here...
stty $saved_tty_settings
一个问题可能是,你将货物固定下来,以便不再把货物送回终点站。 在此情况下,请打字Control-J。 零打美元——打字面——
Control-J。 第一种控制-J型冲锋枪,不论指挥是什么(或无);然后,其余则使用<条码>。 我仍然有一份称为<代码>sane<>/code>的文字,有我的首选背景记录,如果我不得不使用。 我过去10年左右经常使用过该信,但我也毫不掩饰。
Do be extremely cautious about using dangerous commands (rm
et al) and even using quotes can lead to problem (if you can t see what you ve typed and you lose track and you ve disabled line editing, etc). So, you can play; just be careful.