Voelker, Bernhard wrote: > Jim Meyering wrote: >> Please run this command from your build directory >> >> cd src && { touch a b; mode3=2755; ./ginstall -Cv -m$mode3 a b } >> >> and tell us what it prints. > > 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 > > Replacing the { ... } by ( ... ), it prints this: > > $ cd src && ( ./touch a b; mode3=2755; ./ginstall -Cv -m$mode3 a b ) > removed `b' > `a' -> `b'
Thanks. Almost there. Your test output when using GNU diff gave a clue. The *second* time that command is run, it appears to print nothing. Do this in src/: ./touch a b; mode3=2755 ./ginstall -Cv -m$mode3 a b ./ginstall -Cv -m$mode3 a b If the second invocation of ginstall doesn't print anything, that indicates a problem and is why the test is failing. In that case, if you can step through it in gdb, that'd be nice. Otherwise, run it under truss: truss -o log ./ginstall -Cv -m$mode3 a b and send the resulting "log" file.