[#17566] rubychecker - runs checks on a Ruby interpreter — Igal Koshevoy <igal@...>

I've put together a shell script that runs checks on a Ruby interpreter.

14 messages 2008/07/03

[#17615] [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...>

At the moment, ruby-mode.el uses font-lock-keywords as opposed to

22 messages 2008/07/05
[#17657] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Yukihiro Matsumoto <matz@...> 2008/07/08

[#17678] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/09

It was designed to fix the following case:

[#17755] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/13

Here's a third patch that fixes a bug in the second and uses a quicker

[#17772] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/15

One more patch which fixes a few bugs in the the last one.

[#17773] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/15

Hi,

[#17776] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/15

Looks like version 22 doesn't support explicitly numbered regexp groups.

[#17779] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/15

Hi,

[#17783] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/15

Hi,

[#17788] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nathan Weizenbaum <nex342@...> 2008/07/15

Alright, here's a version that fixes both the highlighting bug and the

[#17793] Re: [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes — Nobuyoshi Nakada <nobu@...> 2008/07/16

Hi,

[#17644] Features to be included in Ruby 1.9.1 — "Yugui (Yuki Sonoda)" <yugui@...>

Hi, all

27 messages 2008/07/08

[#17674] [Ruby 1.8 - Bug #238] (Open) Ruby doesn't respect the Windows read-only flag — Jim Deville <redmine@...>

Issue #238 has been reported by Jim Deville.

10 messages 2008/07/08

[#17708] [Ruby 1.8 - Bug #252] (Open) Array#sort doesn't respect overridden <=> — Ryan Davis <redmine@...>

Issue #252 has been reported by Ryan Davis.

13 messages 2008/07/09

[#17871] duping the NilClass — "Nasir Khan" <rubylearner@...>

While nil is an object, calling dup on it causes TypeError. This doesnt seem

33 messages 2008/07/20
[#17872] Re: duping the NilClass — Urabe Shyouhei <shyouhei@...> 2008/07/20

Nasir Khan wrote:

[#17873] Re: duping the NilClass — "Meinrad Recheis" <meinrad.recheis@...> 2008/07/20

On Sun, Jul 20, 2008 at 7:55 PM, Urabe Shyouhei <shyouhei@ruby-lang.org>

[#17877] Re: duping the NilClass — Urabe Shyouhei <shyouhei@...> 2008/07/20

Meinrad Recheis wrote:

[#17879] Re: duping the NilClass — Kurt Stephens <ks@...> 2008/07/20

Urabe Shyouhei wrote:

[#17880] Re: duping the NilClass — "Nasir Khan" <rubylearner@...> 2008/07/21

I write a lot of hand crafted dup or clone because I want control as well as

[#17881] Re: duping the NilClass — "David A. Black" <dblack@...> 2008/07/21

Hi --

[#17882] Re: duping the NilClass — Urabe Shyouhei <shyouhei@...> 2008/07/21

+1 to David. A convenient way to do Marshal idiom should be a new

[#17885] Re: duping the NilClass — "Robert Dober" <robert.dober@...> 2008/07/21

On Mon, Jul 21, 2008 at 8:21 AM, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:

[#17887] Re: duping the NilClass — "David A. Black" <dblack@...> 2008/07/21

Hi --

[#17889] Re: duping the NilClass — "Robert Dober" <robert.dober@...> 2008/07/21

On Mon, Jul 21, 2008 at 1:02 PM, David A. Black <dblack@rubypal.com> wrote:

[#17883] [Ruby 1.9 - Bug #340] (Open) 1.9/trunk does not work when compiled with llvm-gcc4 2.3 (gcc 4.2.1) — Ollivier Robert <redmine@...>

Issue #340 has been reported by Ollivier Robert.

14 messages 2008/07/21

[#17943] RUBY_ENGINE? — "Vladimir Sizikov" <vsizikov@...>

Hi,

56 messages 2008/07/24
[#17950] Re: RUBY_ENGINE? — Tanaka Akira <akr@...> 2008/07/25

In article <3454c9680807241200xf7cc766qb987905a3987bb78@mail.gmail.com>,

[#17958] Re: RUBY_ENGINE? — "Vladimir Sizikov" <vsizikov@...> 2008/07/25

Hi,

[#17981] Re: RUBY_ENGINE? — Tanaka Akira <akr@...> 2008/07/26

In article <3454c9680807250054i70db563duf44b42d92ba41bfb@mail.gmail.com>,

[ruby-core:17935] Re: Expand_Path: New Patch - Modified Processing

From: "C.E. Thornton" <admin@...>
Date: 2008-07-23 19:14:01 UTC
List: ruby-core #17935
Matthew Boeh wrote:
> On Thu, Jul 24, 2008 at 12:52:54AM +0900, Yukihiro Matsumoto wrote:
>   
>> Hi,
>>
>> In message "Re: [ruby-core:17874] Re: Expand_Path:  New Patch - Modified Processing"
>>     on Mon, 21 Jul 2008 03:36:22 +0900, "C.E. Thornton" <admin@hawthorne-press.com> writes:
>>
>> |   It is not a failure of user name!
>> |
>> |   If the directory contains a dir named '~test', it is
>> |a perfectly acceptable dir name.  As long as the 'name'
>> |part of  '~name' is NOT a user name, it should be valid!
>> |
>> | Lets look at how BASH Processes these directories:
>> |
>> |      cd ~chuck     (A user name on my system)
>> |          returns /home/chuck  
>> |      cd ~test         (test is NOT a user name on my system)
>> |          returns 'current_dir/~test'    <== Why should this produce an error?
>>
>> Interestingly, zsh raises error for non-existing user name.
>>
>>   zsh% echo ~matz
>>   /home/matz
>>   zsh% echo ~foo
>>   zsh: no such user or named directory: foo
>>   zsh% echo /tmp/~foo
>>   /tmp/~foo
>>
>> Hence I don't consider this behavior a bug.
>>
>> 							matz.
>>
>>     
>
> That's actually configurable:
>
> % echo $SHELL
> /bin/zsh
> % /bin/zsh --version
> zsh 4.3.4 (x86_64-unknown-linux-gnu)
> % echo ~nothere
> ~nothere
> % setopt badpattern nomatch
> % echo ~nothere
> zsh: no such user or named directory: nothere
>
> I think part of the issue is that File.expand_path has at least two distinct 
> uses.  One is to transform a relative path with . and .. into an absolute 
> path, and the other is to expand tildes. This could be solved in one of three 
> ways: (1) adding another class method to File which only resolves relative 
> paths, (2) adding an argument to File.expand_path to skip the tilde expansion, 
> or (3) to somehow allow tildes to be escaped. Z shell permits the last of 
> these, even with "badpattern nomatch" set:
>
> % echo \~nothere
> ~nothere
>
>   
OK,

Then why does 'sh'

echo ~chuck
/home/~chuck
echo ~foo
~foo                   <== No error!
echo /tmp/~foo
/tmp/~foo

ADDITIONALLY, Rune Hammersland provided this:
I somewhat agree. Python also does this the same way as Bash [1]:

 >>> os.path.expanduser("~rune")
'/Users/rune'
 >>> os.path.expanduser("~asdf")
'~asdf'



NOW,

  Why should a function that expands relative paths to
absolute paths produce an ERROR when it can avoid it.

Thats what we are talking about.  I have a directory that
expand_path deliberately ignores and produces an error.

What is the rational behind that?

Chuck T.

-- 
Competency and chastity have much in common,
they both encompass their own punishment! 
 
-- C.E. Thornton -- Hawthorne Press --


In This Thread