When i load hugs scripts, done on a unix machine on to my win98 machine, Windows notepad loads, showing about 3 lines. how do i get it to display the same way as in Vi?
When i load hugs scripts, done on a unix machine on to my win98 machine, Windows notepad loads, showing about 3 lines. how do i get it to display the same way as in Vi?
Windows and Unix have different end of line terminators (LF on Unix, CRLF on Windows). There's many ways to convert (a little googling will turn them up) but an easy way is to zip them up on Unix, copy the file over and then use unzip -a when unzipping. The -a tells unzip to translate to the local line-termination convention. -- Alastair
Hi there, if you don't want to muck about with changing the line terminators every time you move a file between the two systems, use an editor that's savvy of either convention (most are these days.) Simplest solution, use Wordpad, i.e., Prelude> :set -Ewordpad Prelude> :e Main.hs Depending on what kind of Windows platform you're on, you may have to give the full path to Wordpad with ":set -E", as it could be outside your PATH (it certainly is on my XP box.) hth --sigbjorn ----- Original Message ----- From: Eldrad To: hugs-users@haskell.org Sent: Sunday, June 02, 2002 00:07 Subject: Win98 notepad and Vi When i load hugs scripts, done on a unix machine on to my win98 machine, Windows notepad loads, showing about 3 lines. how do i get it to display the same way as in Vi?
participants (3)
-
Alastair Reid -
Eldrad -
Sigbjorn Finne