bug-bash
[Top][All Lists]
Advanced

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

use of ampersand for backgrounding foils termination parsing?


From: smcdermott
Subject: use of ampersand for backgrounding foils termination parsing?
Date: Sun, 2 Feb 2003 18:47:57 -0500 (EST)

Configuration Information:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib 
-D_GNU_SOURCE  -O2 -march=i386 -mcpu=i686
uname output: Linux lujuria.roc.questra.com 
2.4.20-ac2+neilb+trondmy+gibbs-aic-20021220 #5 SMP Tue Jan 21 00:24:35 EST 2003 
i686 i686 i386 GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:

        semicolons to delimit commands usually work identically to newlines,
        but in the case where they follow an ampersand, there appears to be a
        syntax error generated.

Repeat-By:

        the command

                for N in `seq 1 5`; do somecommand &; done

        does not work, but

                for N in `seq 1 5`; do
                        somecommand &
                done

        works fine.




reply via email to

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