bug-bash
[Top][All Lists]
Advanced

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

Bash enhancement request


From: Paul Foerster
Subject: Bash enhancement request
Date: Mon, 19 May 2008 07:03:32 +0200

Hi,

... I found this email address in the bash man-page, so I hope this is
the right address. I have a small feature request:

Can you make it possible that the EOF marker for here-documents be
nested too, i.e. preceeded with an arbitrary number of white spaces?

I often have this situation:

if [ condition ]; then
    do something
    if [ another condition ]; then
        do something else
        if [ -x "${ORACLE_HOME}/bin/sqlplus" ]; then
            sqlplus -s .... <<-EOF
                do some SQL here
EOF
        fi
    fi
fi

This looks nasty, especially if it occurs several times inside a
script. I would love to be able to align the "EOF" with the sqlplus
command to visually underline the block structure. Would that be
possible to do in future bash versions? I know I can use tabs under
certain conditions already but that doesn't suffice as I don't use a
tab width of 8 spaces.

Thanks very much and sorry if this was the wrong place to put the request.
-- 
cul8er

Paul
address@hidden




reply via email to

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