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

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

Re: Shell-script[bash] indention broken (or fixed?)


From: Steven T. Hatton
Subject: Re: Shell-script[bash] indention broken (or fixed?)
Date: Wed, 15 Jun 2005 16:37:39 -0400
User-agent: KMail/1.8

On Wednesday 15 June 2005 12:31, Stefan Monnier wrote:
> > #!/bin/bash
> > pushd /download/org/gnu/emacs/emacs &&\
> >  cvs update -dPAC &&\
> >  pushd /download/org/gnu/emacs/emacs-build &&\
> >  make clean &&\
> >  ../emacs/configure --prefix=$GNU_EMACS &&\
> >  make -j8 &&\
> >  pushd lisp &&\
> >  make recompile EMACS=../src/emacs &&\
> >  popd &&\
> >  make install &&\
> >  popd
>
> What if these things are within an if or while or case or ...:
>
> Do you do
>
>    if foo then
>        pushd toto &&\
>  cvsupdate ...
>    fi
>
> or do you do
>
>    if foo then
>        pushd toto &&\
>         cvsupdate ...
>    fi
>
>
> -- Stefan

Exactly my reason for equivocating.  Though I will have to go with 

    if foo; then
        pushd toto \
        && cvsupdate;
    fi

as a point of style (corrected on my part.)
-- 
Regards,
Steven




reply via email to

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