From owner-freebsd-questions@FreeBSD.ORG Wed Sep 13 17:24:51 2006 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 3CCFB16A40F for ; Wed, 13 Sep 2006 17:24:51 +0000 (UTC) (envelope-from greenwood.andy@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87BC143DD0 for ; Wed, 13 Sep 2006 17:24:44 +0000 (GMT) (envelope-from greenwood.andy@gmail.com) Received: by wr-out-0506.google.com with SMTP id i21so764742wra for ; Wed, 13 Sep 2006 10:24:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WlewATemKF2k46mnMELviSl3vGW1+k0Ygz9zWOk6EO07yPHOaAAv22ZxFfIZcnHAqrxsjcn/a7xkAkqrnHr44LVEiD+o9mf+/cIafwGpVd8URC0OqCqqeIWbLhX1iLGfQzO9SN/ftK0hwpSY/NasPatHF+FONPoNTAoEEh7DjHo= Received: by 10.90.28.12 with SMTP id b12mr2862487agb; Wed, 13 Sep 2006 10:24:42 -0700 (PDT) Received: by 10.90.80.18 with HTTP; Wed, 13 Sep 2006 10:24:42 -0700 (PDT) Message-ID: <3ee9ca710609131024u5c145a3bldda810cad5aa5470@mail.gmail.com> Date: Wed, 13 Sep 2006 13:24:42 -0400 From: "Andy Greenwood" To: "Philip Hallstrom" In-Reply-To: <20060913121116.H30246@bravo.pjkh.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3ee9ca710609130925i415eca35v483f6ee5421e1125@mail.gmail.com> <20060913121116.H30246@bravo.pjkh.com> Cc: FreeBSD Questions Subject: Re: CLI text editor recommendation 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, 13 Sep 2006 17:24:51 -0000 Thanks for the advice everyone. I will certainly check out my php and see if I can figure out why it's giving me errors as-is. On 9/13/06, Philip Hallstrom wrote: > > I need a CLI text editor I can use over ssh, which does NOT append > > newlines to the end of files as I save them. I am using this to edit > > PHP files, and my PHP doesn't like newlines outside the last ?>. ee > > and vi both do so, I tried nano which also does the same. I haven't > > installed emacs to try that yet, since the man page says that it also > > does the same thing. Does anyone have any ideas? > > Not an editor, but why not just do this: > > ------------------------------------------------------------------- > > # php code here > > # note no last ?>. php will treat the rest of the file as php > ------------------------------------------------------------------- > >