[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52870] small issues about double quote (") wi
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #52870] small issues about double quote (") with backslash (\) |
Date: |
Fri, 12 Jan 2018 03:14:11 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.gnu.org/bugs/?52870>
Summary: small issues about double quote (") with backslash
(\)
Project: GNU Octave
Submitted by: None
Submitted on: Fri 12 Jan 2018 08:14:09 AM UTC
Category: Documentation
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Documentation
Status: None
Assigned to: None
Originator Name:
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.1
Operating System: Any
_______________________________________________________
Details:
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
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52870>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52870] small issues about double quote (") with backslash (\),
anonymous <=