Bug in trim?
[1/3] from: d4marcus:dtek:chalmers:se at: 12-Dec-2001 1:06
What's going on here?
>> trim/with "0000ff00" "0"
== "ff"
>> trim/head/with "0000ff00" "0"
** Script Error: Invalid path value: with
** Near: trim/head/with "0000ff00" "0"
Marcus
------------------------------------
If you find that life spits on you
calm down and pretend it's raining
[2/3] from: al:bri:xtra at: 12-Dec-2001 21:33
Looks like a bug with 'trim. I'll send it to [feedback--rebol--com]
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
[3/3] from: carl::cybercraft::co::nz at: 13-Dec-2001 8:01
On 12-Dec-01, Andrew Martin wrote:
> Looks like a bug with 'trim.
I'd say it's more a design flaw, as help says /with is the same as
/all, which makes using it with /head a bit contradictory...
USAGE:
TRIM series /head /tail /auto /lines /all /with str
DESCRIPTION:
Removes whitespace from a string. Default removes from head and
tail.
TRIM is an action value.
ARGUMENTS:
series -- (Type: series port)
REFINEMENTS:
/head -- Removes only from the head.
/tail -- Removes only from the tail.
/auto -- Auto indents lines relative to first line.
/lines -- Removes all line breaks and extra spaces.
/all -- Removes all whitespace.
/with
str -- Same as /all, but removes characters in 'str'. (Type:
char string)
It'd make more sense if /with just replaced removing whitespace with
removing str. Very odd that it doesn't, actually...
> I'll send it to [feedback--rebol--com]
> Andrew Martin
<<quoted lines omitted: 24>>
>> subject, without the quotes.
>>
--
Carl Read
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted