help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Korn Shell Script Strangeness


From: Tennis Smith
Subject: Korn Shell Script Strangeness
Date: 21 Feb 2004 12:24:46 -0800

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 via email to

[Prev in Thread] Current Thread [Next in Thread]