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

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

bug#15613: Wrong indentation in Shell-script[sh] mode?


From: Angelo Graziosi
Subject: bug#15613: Wrong indentation in Shell-script[sh] mode?
Date: Mon, 14 Oct 2013 22:53:04 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1

In the current trunk the indentation for bash scripts looks as in this test case:

$ cat test_indent.sh
#!/bin/bash

if [ "${foo_a}" != "${foo_b}" ]; then

    if [ "${foo_c}" = "${foo_d}" ]; then
        echo
        echo "Hello..."
        echo
        exit 1
    fi

    fi


The inner if-fi looks ok but in the outer one expects the last fi under the first if.. Or not?

This happens with

$ emacs -Q &

and using TAB to indent..


Ciao,
 Angelo.





reply via email to

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