all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tennis_smith@yahoo.com (Tennis Smith)
Subject: Korn Shell Script Strangeness
Date: 21 Feb 2004 12:24:46 -0800	[thread overview]
Message-ID: <7f477f72.0402211224.eb14eaa@posting.google.com> (raw)

Hi,

I was editing a korn shell script and had to introduce into it a few
lines of code for "ed", the batch editor.

Here's the code:

    for file in qos_cgest147.sai;
      do
      echo $file
      ed $file <<EOF
1,\$s/0:0:0  2.3946/0:0:0  2.9825/g
w
EOF
    done


Unfortunately, Emacs did seem to recognise the code
("shell-script(ksh88)" mode)and set the font colors. But, it would not
indent the area (see above).

So, I'm wondering how to make that happen.  The "ed" code is the only
thing in the whole file that simply won't indent when I do an
"indent-region".  How can I make this conform to some sort of uniform
formatting?

Any ideas what may be happening?

TIA,
-Tennis

             reply	other threads:[~2004-02-21 20:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-21 20:24 Tennis Smith [this message]
2004-02-22 17:04 ` Korn Shell Script Strangeness Kai Grossjohann

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=7f477f72.0402211224.eb14eaa@posting.google.com \
    --to=tennis_smith@yahoo.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.