Re: bug in /bin/sh?!?

2008-04-06 Thread Dan Grillo
Julian Elischer writes: | dino wrote: | > Hello, | > | > on my FreeBSD 7.0-STABLE the line: | > | >> sh -c 'set -- ${HOME+A B C}; echo "1:$1"; echo "2:$2:"; echo "3:$3:"' | > | > prints | > | > 1:A B C: | > 2:: | > 3:: | > | > I would rather expect: | > | > 1:A: | > 2:B: | > 3:C: | > | > Is

Re: bug in /bin/sh?!?

2008-04-06 Thread Giorgos Keramidas
On Sun, 06 Apr 2008 11:17:18 -0700, Julian Elischer <[EMAIL PROTECTED]> wrote: > dino wrote: >> Hello, >> >> on my FreeBSD 7.0-STABLE the line: >> >>> sh -c 'set -- ${HOME+A B C}; echo "1:$1"; echo "2:$2:"; echo "3:$3:"' >> >> prints >> >> 1:A B C: >> 2:: >> 3:: >> >> I would rather expect: >> >> 1

Re: Is describing sysctl variables useful?

2008-04-06 Thread Dag-Erling Smørgrav
David Wolfskill <[EMAIL PROTECTED]> writes: > To that end, I've cobbled up a Perl script that acts as a "wrapper" > around time(1) and uses that command to obtain the "rusage" (ref. > getrusage(2)) information about the command in question. http://search.cpan.org/~taffy/Unix-Getrusage-0.03/ DES -

Re: bug in /bin/sh?!?

2008-04-06 Thread Dag-Erling Smørgrav
Julian Elischer <[EMAIL PROTECTED]> writes: > "A B C" is a single value tha thappens to contain spaces. > so, yes there is no splitting at that point. Unfortunately, I do not have a copy of the original Bourne shell, but bash in both bash and sh mode disagrees; zsh in both sh and ksh mode disagree

Re: Is describing sysctl variables useful?

2008-04-06 Thread Sofian Brabez
On Fri, Apr 4, 2008 at 10:36 AM, Alexander Leidinger <[EMAIL PROTECTED]> wrote: > Unfortunately this is not suitable for the SoC. Google wants code > contributions, not pure documentation work. Maybe you can find something > else you would be willing to do during the SoC. In case you haven't send

Re: Perforce and `p4 diff2' against the origin

2008-04-06 Thread Giorgos Keramidas
On Sat, 5 Apr 2008 16:50:38 +0200, Ed Schouten <[EMAIL PROTECTED]> wrote: > Hello everyone, > > Because my mpsafetty project in Perforce is going quite well, I'm > considering running some kind of cron job to generate nightly diffs, so > other people (interested friends, colleagues and others) to t

Re: bug in /bin/sh?!?

2008-04-06 Thread Julian Elischer
dino wrote: Hello, on my FreeBSD 7.0-STABLE the line: sh -c 'set -- ${HOME+A B C}; echo "1:$1"; echo "2:$2:"; echo "3:$3:"' prints 1:A B C: 2:: 3:: I would rather expect: 1:A: 2:B: 3:C: Is it correct that field splitting isn't performed on default/alternate expanded values? "A B C" is

bug in /bin/sh?!?

2008-04-06 Thread dino
Hello, on my FreeBSD 7.0-STABLE the line: > sh -c 'set -- ${HOME+A B C}; echo "1:$1"; echo "2:$2:"; echo "3:$3:"' prints 1:A B C: 2:: 3:: I would rather expect: 1:A: 2:B: 3:C: Is it correct that field splitting isn't performed on default/alternate expanded values? regards, Corrado Ficicchi