From bug-octave-request at bevo dot che dot wisc dot edu Thu Oct 21 12:46:42 1999 Subject: bug (?) in split.m with empty string From: Joao Cardoso To: bug-octave Date: Thu, 21 Oct 1999 18:46:33 +0100 Hi, 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' Joao -- Joao Cardoso | e-mail: jcardoso at inescn dot pt INESC, R. Jose Falcao 110 | tel: + 351 2 2094322 4050 Porto, Portugal | fax: + 351 2 2008487 --------------------------------------------------------------------- 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 ---------------------------------------------------------------------