On Wed, 19 Aug 2009, Voelker, Bernhard wrote:
somehow, my shell (/bin/ksh) doesn't like the { ... } syntax here:
$ cd src && { touch a b; mode3=2755; ./ginstall -Cv -m$mode3 a b }
>
it waits for the command to be continued ... I can't see why
That's not quite valid (POSIX) sh, which requires a ";" following every
command.
Replacing the { ... } by ( ... ), it prints this:
$ cd src && ( ./touch a b; mode3=2755; ./ginstall -Cv -m$mode3 a b )
removed `b'
`a' -> `b'
This does the same thing but uses a subshell, which makes no difference
in this example.
Cheers,
Phil