[Bug 82919] New: code folding problem when scripting bash scripts

markus flaig toskala at schanzengeeks.net
Mon Jun 7 01:06:06 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=82919      
           Summary: code folding problem when scripting bash scripts
           Product: kdevelop
           Version: 3.0.3
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: all editors
        AssignedTo: kdevelop-devel kdevelop org
        ReportedBy: toskala schanzengeeks net


Version:           3.0.3 (using KDE 3.2.2, Gentoo)
Compiler:          gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
OS:                Linux (i686) release 2.6.5-gentoo-r1

hi there,
the problem with code folding occurs whenever i script a bash-script and create a function that contains several if-clauses. 

example script-code:

function_foo () {

	if [ -f /tmp/foo ]; then
		echo -e "hello foo!";
	else
		echo -e "no foo :(";
	fi

	if [ -f /tmp/bar ]; then
		echo -e "hello bar!";
	else
		echo -e "no bar :(";
	fi
}

so the problem now is, that i usually can fold each if-clause for itself, but somehow whenever i fold one of the if-clauses my whole function gets folded, what actually isnt what i want :)

i am not sure why it occurs and when, i just discovered that problem 2 times now on 2 different scripts i try to maintain. nothing really serious, just a little bit annoying.

cheerios,
markus




More information about the KDevelop-devel mailing list