bugGNU Octave - Bugs: bug #52870, small issues about double quote...

 
 

bug #52870: small issues about double quote (") with backslash (\)

Submitter:  None
Submitted:  Fri 12 Jan 2018 08:14:09 AM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.2.1
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 15 Jan 2018 01:19:35 AM UTC, comment #1: 
Rik <rik5>
Group administrator
Fri 12 Jan 2018 08:14:09 AM UTC, original submission:  

Some "...\..." should be replaced with either '...\...' or "...\\..."


diff -ur a/libinterp/corefcn/input.cc b/libinterp/corefcn/input.cc
--- a/libinterp/corefcn/input.cc
+++ b/libinterp/corefcn/input.cc
@@ -1210,7 +1210,7 @@
 When executing interactively, Octave displays the primary prompt when it is
 ready to read a command.

-The default value of the primary prompt string is @qcode{"octave:\#> "}.
+The default value of the primary prompt string is @qcode{'octave:\#> '}.
 To change it, use a command like

 @example
diff -ur a/scripts/strings/regexptranslate.m b/scripts/strings/regexptranslate.m
--- a/scripts/strings/regexptranslate.m
+++ b/scripts/strings/regexptranslate.m
@@ -33,7 +33,7 @@
 ## @example
 ## @group
 ## regexptranslate ("wildcard", "*.m")
-##      @result{} ".*\.m"
+##      @result{} '.*\.m'
 ## @end group
 ## @end example
 ##
@@ -44,7 +44,7 @@
 ## @example
 ## @group
 ## regexptranslate ("escape", "12.5")
-##      @result{} "12\.5"
+##      @result{} '12\.5'
 ## @end group
 ## @end example
 ##



Besides, the following patch might be applied to "stable" branch.
In the "default" branch, md5sum.m has already been fixed, and usage.m fnmatch.m have already been removed in Octave 4.4

diff -ur a/scripts/deprecated/fnmatch.m b/scripts/deprecated/fnmatch.m
--- a/scripts/deprecated/fnmatch.m
+++ b/scripts/deprecated/fnmatch.m
@@ -28,7 +28,7 @@
 ##
 ## @example
 ## @group
-## fnmatch (\"a*b\", @{\"ab\"; \"axyzb\"; \"xyzab\"@})
+## fnmatch ("a*b", @{"ab"; "axyzb"; "xyzab"@})
 ##      @result{} [ 1; 1; 0 ]
 ## @end group
 ## @end example
diff -ur a/scripts/deprecated/md5sum.m b/scripts/deprecated/md5sum.m
--- a/scripts/deprecated/md5sum.m
+++ b/scripts/deprecated/md5sum.m
@@ -25,13 +25,13 @@
 ## with:
 ##
 ## @example
-## hash (\"md5\", fileread (@var{file}))
+## hash ("md5", fileread (@var{file}))
 ## @end example
 ##
 ## And calls like @code{md5sum (@var{str}, true)} with:
 ##
 ## @example
-## hash (\"md5\", fileread (@var{str}))
+## hash ("md5", fileread (@var{str}))
 ## @end example
 ##
 ## Calculate the MD5 sum of the file @var{file}.
diff -ur a/scripts/deprecated/usage.m b/scripts/deprecated/usage.m
--- a/scripts/deprecated/usage.m
+++ b/scripts/deprecated/usage.m
@@ -39,7 +39,7 @@
 ## @example
 ## @group
 ## if (nargin != 2)
-##   usage (\"foo (a, b)\");
+##   usage ("foo (a, b)");
 ## endif
 ## @end group
 ## @end example


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-01-15 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code