|
| From: | Philip Rowlands |
| Subject: | Re: AW: AW: AW: AW: AW: new snapshot available: coreutils-7.4.125-eca6 |
| Date: | Wed, 19 Aug 2009 09:30:22 +0100 (BST) |
| User-agent: | Alpine 1.10 (DEB 962 2008-03-14) |
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
| [Prev in Thread] | Current Thread | [Next in Thread] |