[#9644] Determinant Problem in Matrix.rb — <noreply@...>
Bugs item #7001, was opened at 2006-12-01 03:50
This is 100% intended. You have to learn integer arithmetics when you
[#9654] Float numbers comparison — "Paulo Soeiro" <pcsoeiro@...>
Hi,
On 12/1/06, Paulo Soeiro <pcsoeiro@gmail.com> wrote:
[#9661] Dir.exist? — Kornelius Kalnbach <murphy@...>
hi!
[#9664] Bigdecimal isn't comparable — <noreply@...>
Bugs item #7045, was opened at 2006-12-04 19:20
On 12/4/06, noreply@rubyforge.org <noreply@rubyforge.org> wrote:
[#9685] Segmentation fault - bignorm() — ico@... (Ico Doornekamp)
[#9713] Sets and String subclasses — <noreply@...>
Bugs item #7253, was opened at 2006-12-13 12:26
> I would expect the second puts to return 5, not nil. In fact, I'd expect s.to_a[0] to return the same object as a.
[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>
Bugs item #7278, was opened at 2006-12-14 13:59
Hi,
I bet your script /usr/local/bin/p4 is a shell script which doesn't have a
On Dec 14, 2006, at 18:57, Michael Selig wrote:
[#9725] Fixes going into 1.8.5.9 — "Zev Blut" <rubyzbibd@...>
Hello,
[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>
Back in August, I needed a semaphore to serialize access to an external
Hi,
Nobuyoshi Nakada wrote:
Hi,
[#9753] CVS freeze — SASADA Koichi <ko1@...>
Hi,
Hi,
Hi,
Hi,
Hi,
* Shugo Maeda (shugo@ruby-lang.org) wrote:
[#9794] Fwd: [Vit-core] Ruby 1.8.5-p2 Stable Version download bug-fix confusion. — James Edward Gray II <james@...>
The following is a complaint we received about the Ruby home page today.
[#9797] Where to start — "Strong Cypher" <cypherstrong@...>
-----BEGIN PGP SIGNED MESSAGE-----
[#9803] RDoc patch that fixes rb_const_define output — <noreply@...>
Patches item #7499, was opened at 2006-12-30 05:23
On 12/30/06, Eric Hodel <drbrain@segment7.net> wrote:
On Dec 30, 2006, at 19:16, Daniel Berger wrote:
On Dec 31, 2006, at 24:31, Eric Hodel wrote:
[#9816] merge YARV — SASADA Koichi <ko1@...>
Hi,
Re: [ ruby-Bugs-7278 ] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters
I bet your script /usr/local/bin/p4 is a shell script which doesn't have a
"#!/bin/sh" line at the top, and that if you put one in, it will work in
both cases.
When Ruby executes the command (under Unix/Linux anyhow) for efficiency it
checks if the command contains a character which needs the Unix shell to run
it. This includes ";". If not, it executes it directory using one of the
exec(2) system calls. Otherwise it has to call "/bin/sh" to run it, which
starts an extra process, and therefore is considerably slower. Under most
Unixes, you need to have a "#!" line at the top of scripts for exec() to
work.
If you run the script from the Unix shell, most shells will automatically
run it as a shell script if exec() fails.
So perhaps the real "bug" is that Ruby should do this also.
Cheers,
Mike Selig
----- Original Message -----
From: <noreply@rubyforge.org>
To: <ruby-core@ruby-lang.org>
Sent: Friday, December 15, 2006 8:59 AM
Subject: [ ruby-Bugs-7278 ] Kernel#system broken inside Dir.chdir(&block) if
system command doesn't have shell characters
> Bugs item #7278, was opened at 2006-12-14 13:59
> You can respond by visiting:
> http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7278&group_id=426
>
> Category: Core
> Group: 1.8.x
> Status: Open
> Resolution: None
> Priority: 3
> Submitted By: Ryan Davis (zenspider)
> Assigned to: Nobody (None)
> Summary: Kernel#system broken inside Dir.chdir(&block) if system command
doesn't have shell characters
>
> Initial Comment:
> I have a series of commands I'm trying to run that'll only work if I'm in
the "p4" subdir. But system inside of a chdir is borking unless I add a
semicolon to the command. The system/exec logic is overly complex and hurts
my brain so I can't debug it:
>
> % ruby -v -e 'Dir.chdir("p4") { system "/usr/local/bin/p4 info" }'
> ruby 1.8.5 (2006-08-25) [i686-darwin8.8.1]
> Perforce client error:
> Connect to server failed; check $P4PORT.
> TCP connect to perforce failed.
> perforce: host unknown.
>
> % ruby -v -e 'Dir.chdir("p4") { system "/usr/local/bin/p4 info;" }' ###
<=== notice the semicolon
> ruby 1.8.5 (2006-08-25) [i686-darwin8.8.1]
> User name: ryand
> Client name: test1
> Client host: ewin-mac.limewire.com
> Client root: /Users/ryan/mirror/p4
> Current directory: /Users/ryan/mirror/p4
> Client address: 216.27.158.74:55857
> Server address: dsl254-010-137.sea1.dsl.speakeasy.net:1666
> Server root: /Volumes/Users/perforce/root
> Server date: 2006/12/14 13:57:48 -0800 PST
> Server version: P4D/DARWIN60CSPPC/2005.2.case_sensitive/90475 (2006/01/05)
> Server license: Ryan Davis/Zen Spider Software 30 users (expires
2007/10/12)
>
>
> ----------------------------------------------------------------------
>
> You can respond by visiting:
> http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7278&group_id=426
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.409 / Virus Database: 268.15.19/587 - Release Date: 14/12/06
>
>