From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Francis Moreau" Newsgroups: gmane.emacs.help Subject: Re: How to open a file in sh-mode Date: Thu, 14 Aug 2008 11:34:22 +0200 Message-ID: <38b2ab8a0808140234n3e8180bdh2f6c2111caeb9767@mail.gmail.com> References: <38b2ab8a0808140053g6261aeafmd74692199cea07eb@mail.gmail.com> <87tzdodmu0.fsf@localhorst.mine.nu> <38b2ab8a0808140204s9badea6w38526cef832ceb79@mail.gmail.com> <87r68srlvc.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218706528 21893 80.91.229.12 (14 Aug 2008 09:35:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2008 09:35:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Thierry Volpiatto" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 11:36:20 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KTZFI-0005gj-IE for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 11:35:52 +0200 Original-Received: from localhost ([127.0.0.1]:38787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTZEL-0004yq-UJ for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 05:34:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTZDv-0004yQ-53 for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 05:34:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTZDt-0004x7-1Y for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 05:34:26 -0400 Original-Received: from [199.232.76.173] (port=43279 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTZDs-0004wq-KQ for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 05:34:24 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.241]:62595) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTZDs-0002LW-4O for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 05:34:24 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so334059rvb.6 for ; Thu, 14 Aug 2008 02:34:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=2rN975Zv4Vaq+G17eB97kQ9pIfTKqL8UfmbcDtDHgLE=; b=u07cCRc5f2kI0/l/6324U31g90od+qLVubPkbjrDTGKYak2m6FlFG0YfOdj16zTDPT uD6697D3+CX5QZW/qzgYDixG8fdy5u2YrTxWcRq9h4j8FyhRDiDfJc0RV+0tcQyRoLM3 gs0rRBbB5RR9xpu8oqkO95GCp8FEwHuUGko6g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=lsBKsov2+rbQ+5rUfCCpZ8YhCGLeqjYbGaB3HUoygc2+Hjgrncn35mePLwOLB7svtW hiy2JH8P4s2UTcXaoBNo8cC/8fIhK5sSH2lSmKmaSw6/Gux5rfYmh2WMIMzaDk4ljWkE fb0p8sr0rO+SapO8QjOP3CNC1bmxx+jGPALxQ= Original-Received: by 10.141.51.15 with SMTP id d15mr485658rvk.106.1218706463005; Thu, 14 Aug 2008 02:34:23 -0700 (PDT) Original-Received: by 10.140.170.16 with HTTP; Thu, 14 Aug 2008 02:34:22 -0700 (PDT) In-Reply-To: <87r68srlvc.fsf@tux.homenetwork> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56598 Archived-At: On Thu, Aug 14, 2008 at 11:23 AM, Thierry Volpiatto wrote: > "Francis Moreau" writes: > >> On Thu, Aug 14, 2008 at 10:26 AM, David Hansen wrote: >>> On Thu, 14 Aug 2008 09:53:39 +0200 Francis Moreau wrote: >>> >>>> Could anybody give me some advices ? >>> >>> Put "#!/bin/sh" or "# -*- mode: sh; -*-" in the first line of the file. >>> >> >> As I previously replied I can't. Please see my answer to Henrik. >> >> But IMHO that's an ugly workaround anyways > > ?? starting a shell script without any headers is not very nice i think! Please have a look in my previous reply to see how is it going to be used... -- Francis