GNU bug report logs - #48193
Youngsters in charge of emacs vs. basic Bourne shell "for" statement

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Mon, 3 May 2021 15:08:02 UTC

Severity: minor

Tags: confirmed, patch

Merged with 2910, 21244, 26217, 30170, 46093

Found in versions 25.0.95, 25.2

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Gregory Heytings <gregory <at> heytings.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 48193 <at> debbugs.gnu.org
Subject: bug#48193: Youngsters in charge of emacs vs. basic Bourne shell "for" statement
Date: Mon, 03 May 2021 17:13:12 +0000
>
> $ man bash
> SHELL GRAMMAR
> for name [ [ in [ word ... ] ] ; ] do list ; done
>

So what?  Of course it it's not feasible to embed a complete Bourne shell 
interpreter (or for that matter the interpreter of any language) in Emacs 
to cope with every possible exotic construct of that language.  I note 
that

for i
do
    true
done

and

for i; do
    true
done

are both indented as you expect.




This bug report was last modified 1 year and 274 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.