From owner-freebsd-questions@FreeBSD.ORG Wed Jul 20 04:44:25 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE03916A41F for ; Wed, 20 Jul 2005 04:44:25 +0000 (GMT) (envelope-from Qiang.Xu@fujixerox.com) Received: from mx20.fujixerox.co.jp (mx20.fujixerox.co.jp [192.26.96.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C82B43D46 for ; Wed, 20 Jul 2005 04:44:24 +0000 (GMT) (envelope-from Qiang.Xu@fujixerox.com) Received: from isvw20.fujixerox.co.jp ([129.249.27.140]) by mx20.fujixerox.co.jp with ESMTP id j6K4iOF6025044 for ; Wed, 20 Jul 2005 13:44:24 +0900 (JST) Received: from ms20.fujixerox.co.jp (localhost [127.0.0.1]) by isvw20.fujixerox.co.jp with ESMTP id j6K4iNtj016788 for ; Wed, 20 Jul 2005 13:44:23 +0900 (JST) Received: from ms1.fujixerox.co.jp (ms1 [129.249.27.192]) by ms20.fujixerox.co.jp with ESMTP id j6K4iNuK019223 for ; Wed, 20 Jul 2005 13:44:23 +0900 (JST) Received: from sgpaphq-smtp01.fujixerox.com ([13.198.8.73]) by ms1.fujixerox.co.jp (8.11.6p2a/3.7W) with ESMTP id j6K4iMm14555 for ; Wed, 20 Jul 2005 13:44:22 +0900 (JST) Received: from mailhost.sgp.fujixerox.com by sgpaphq-smtp01.fujixerox.com with ESMTP id 89885921121834636; Wed, 20 Jul 2005 12:43:56 +0800 Received: from localhost (localhost [127.0.0.1]) by localhost.sgp.fujixerox.com (Postfix) with SMTP id 22EDC1D93C for ; Wed, 20 Jul 2005 12:43:51 +0800 (SGT) Received: from sess.xssc.sgp.xerox.com (unknown [13.198.33.122]) by imss.sgp.fujixerox.com (Postfix) with ESMTP id 04C111D969; Wed, 20 Jul 2005 12:43:45 +0800 (SGT) From: Xu Qiang To: freebsd-questions@freebsd.org Date: Wed, 20 Jul 2005 12:46:49 +0800 X-Sent-Folder-Path: Sent Items X-Mailer: Oracle Connector for Outlook 9.0.4 60130 (9.0.2711) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <20050720044345.04C111D969@imss.sgp.fujixerox.com> Subject: 1 byte more? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2005 04:44:26 -0000 Hi, all: = I just met a strange problem. = In FreeBSD 5.3, I want to create a new txt file with vi, and type a single = digit into it, and save it for future use. My steps are: = 1 vi count.txt 2 type i (for insert mode) 3 type 0 4 Esc 5 :wq Then by "ls -l", I found the file's size is 2 bytes, intead of 1 byte as I = expected. = Then I did a similar thing in MS Windows, to create a txt file with only 1 = digit in it. The behavior is expected, the file is 1 byte long. And when I = ftp'ed that file to FreeBSD, the size is still correct. = Why does vi in FreeBSD add 1 invisible character to the txt file? = Looking forward to any possible help, = Regards, Xu Qiang