From bug-octave-request at bevo dot che dot wisc dot edu Fri Oct 22 04:45:25 1999 Subject: bug (?) in split.m with empty string From: "John W. Eaton" To: Joao Cardoso Cc: bug-octave Date: Fri, 22 Oct 1999 04:44:07 -0500 (CDT) On 21-Oct-1999, Joao Cardoso wrote: | If the string argument to 'split' is empty, and error is returned; | should'n an empty string be returned? | | octave:53> split("a",".") | ans = a | octave:54> split("",".") | error: split: s must not be shorter than t | error: evaluating if command near line 40, column 3 | error: evaluating if command near line 35, column 3 | error: called from `split' in file `/usr/local/share/octave/2.1.14/m/strings/split.m' Sure, why not? I fixed my sources. The fix is trivial, so if you need it... jwe --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------