ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Voinov <voins@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] [off] Cygwin crlfs
Date: Wed, 23 Jul 2003 09:32:29 +0400
Message-ID: <20030723053229.GB5951@altlinux.ru> (raw)
In-Reply-To: <8026881363.20030720220417@otstavnov.com>

[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]

Maksim Otstavnov wrote
> Извините за вопрос не по теме, но кто-нибудь здесь наверняка (?) знает.
> 
> Обнаружил, что в Cygwin cat записывает терминальный ввод в файл с
> <cr><lf>s вместо <cr>s. Vim также создает файлы с <cr><lf>s.
> 
> bash такими файлами давится.
> 
> Как-то это можно решить?
В cygwin есть два режима "монтирования" "устройств": text и binary.
Этот режим определяет в каком режим по умолчанию будут открываться все
файлы на этом "устройстве". В режиме text производится трансляция
переводов строк '\n' в crlf (все это знают :) ) Для того, чтобы этого не
происходило, надо "перемонтировать" "устройства" с флагом -b

hint: "монтирование" / операция не всегда тривиальная :) желательно
выполнять её одной коммандой типа:

$ umount / && mount -b c:\\cygwin\\ /


-- 
Best Regards!           | Когда вам платят за работу, надо по крайней мере
Alexey Voinov           | делать вид, что вы работаете...
                        |                         Б.Виан "Осень в Пекине"
voins@voins.program.ru
voins@altlinux.ru


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2003-07-23  5:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-20 18:04 Maksim Otstavnov
2003-07-20 20:05 ` Dmitry Azhichakov
2003-07-20 20:22   ` Dmitry Azhichakov
2003-07-21  3:55     ` Re[2]: " Maksim Otstavnov
2003-07-22  8:14       ` Dmitry Azhichakov
2003-07-22 16:23         ` Re[4]: " Maksim Otstavnov
2003-07-21  1:16 ` Alexander Kirey
2003-07-21  1:23   ` Alexander Kirey
2003-07-21  8:56   ` Re[2]: " Maksim Otstavnov
2003-07-23  5:32 ` Alexey Voinov [this message]
2003-07-23 10:01   ` Maksim Otstavnov
2003-07-24  4:25     ` Alexey Voinov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030723053229.GB5951@altlinux.ru \
    --to=voins@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git