$ ruby -rfind -e 'Find.find("foo") {|e| p e}'
"foo"
$ ls foo
C:\msys\1.0\local\bin\ls.exe: foo: No such file or directory
It should return nothing if foo doesn't exist.
martin
$ ruby -rfind -e 'Find.find("foo") {|e| p e}'
"foo"
$ ls foo
C:\msys\1.0\local\bin\ls.exe: foo: No such file or directory
It should return nothing if foo doesn't exist.
martin
Hi,
At Wed, 8 Sep 2004 00:45:09 +0900,
Martin DeMello wrote in [ruby-talk:111751]:
$ ruby -rfind -e 'Find.find("foo") {|e| p e}'
"foo"$ ls foo
C:\msys\1.0\local\bin\ls.exe: foo: No such file or directoryIt should return nothing if foo doesn't exist.
What version ruby do you run?
$ LANG=C ls foo
ls: foo: No such file or directory
$ ruby -v -rfind -e 'Find.find("foo") {|e| p e}'
ruby 1.9.0 (2004-09-07) [i686-linux]
--
Nobu Nakada
Martin DeMello ha scritto:
$ ruby -rfind -e 'Find.find("foo") {|e| p e}'
"foo"$ ls foo
C:\msys\1.0\local\bin\ls.exe: foo: No such file or directoryIt should return nothing if foo doesn't exist.
can't confirm it here, could ypou give more info:
C:\Documents and Settings\gabriele>ls foo
ls: foo: No such file or directory
C:\Documents and Settings\gabriele>ruby -rfind -e "Find.find('foo') {|e| p e }"
C:\Documents and Settings\gabriele>ruby -v
ruby 1.8.2 (2004-07-29) [i386-mswin32]
(winxp pro)
Another one:
suchanek:~/amrita-1.0.2-patched/test-dir hramrach$ ls -l
celkem 0
lrwxr-xr-x 1 hramrach hramrach 12 z·# 13 18:48 A ->
/nonexistent
-rw-r--r-- 1 hramrach hramrach 0 z·# 13 18:49 B
suchanek:~/amrita-1.0.2-patched/test-dir hramrach$ ruby -e 'require
"find" ; Find.find("."){|n| STDERR.puts n }'
.
./B
suchanek:~/amrita-1.0.2-patched/test-dir hramrach$ ruby -v
ruby 1.8.2 (2004-07-29) [powerpc-darwin]
Find does not find dangling symlinks
Thanks
Michal Suchanek
On Wed, Sep 08, 2004 at 12:45:09AM +0900, Martin DeMello wrote:
$ ruby -rfind -e 'Find.find("foo") {|e| p e}'
"foo"$ ls foo
C:\msys\1.0\local\bin\ls.exe: foo: No such file or directory
$ ruby -v
ruby 1.8.1 (2003-12-25) [i386-mswin32]
(one click installer)
martin
nobu.nokada@softhome.net wrote:
What version ruby do you run?
$ LANG=C ls foo
ls: foo: No such file or directory
$ ruby -v -rfind -e 'Find.find("foo") {|e| p e}'
ruby 1.9.0 (2004-09-07) [i686-linux]
Just asked on #ruby-lang - it's been fixed in 1.8.2. Sorry about the
noise.
martin
gabriele renzi <rff_rff@remove-yahoo.it> wrote:
Martin DeMello ha scritto:
> $ ruby -rfind -e 'Find.find("foo") {|e| p e}'
> "foo"
>
> $ ls foo
> C:\msys\1.0\local\bin\ls.exe: foo: No such file or directory
>
> It should return nothing if foo doesn't exist.
>can't confirm it here, could ypou give more info: