bash redirection question

Kenneth Brody kenbrody at spamcop.net
Wed Sep 2 11:37:10 PDT 2015


On 9/2/2015 2:21 PM, tob at b-e-s-t.com wrote:
>
> I go into a centos 5.4 system from putty from a win7 pro system.
> I know that having it all on one line is working perfectly.
> I know that you pointing out my missing the <ENTER> keystroke after the menu name made the difference.
> I'm not sure how the system dealt with the \n; but I definitely did not have an <ENTER>
[...]
>>>> cat keys
>>>> 6
>>>> menuJJ
>>>> <ESC><ESC><ESC>ESC>N
>>>> Y
>>>> X
>>> [...]
>>>
>>> If you were entering the keystrokes manually, would you have pressed Enter
>>> after the "6"? (And if you had, what would have happened?)
>>>
>>> Ditto for the "N" and "Y".

No, I was pointing out the *extra* newlines you had after the "6", "N", and "Y".

And filePro treats Ctrl-M (CR) and Ctrl-J (LF and/or NL) the same, unless 
the termcap shows that Ctrl-J is one of the "special" keys, like one of 
those ancient terminals that sent it for down-arrow.

-- 
Kenneth Brody


More information about the Filepro-list mailing list