Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
05bb823c
Commit
05bb823c
authored
8 years ago
by
Axel Naumann
Browse files
Options
Downloads
Patches
Plain Diff
Require ">" after ".5" to accept it as redirection (ROOT-8696).
parent
d2e0c7a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
interpreter/cling/lib/MetaProcessor/MetaParser.cpp
+1
-1
1 addition, 1 deletion
interpreter/cling/lib/MetaProcessor/MetaParser.cpp
interpreter/cling/test/Prompt/OutputRedirect.C
+3
-0
3 additions, 0 deletions
interpreter/cling/test/Prompt/OutputRedirect.C
with
4 additions
and
1 deletion
interpreter/cling/lib/MetaProcessor/MetaParser.cpp
+
1
−
1
View file @
05bb823c
...
@@ -185,7 +185,7 @@ namespace cling {
...
@@ -185,7 +185,7 @@ namespace cling {
// Default redirect is stdout.
// Default redirect is stdout.
MetaProcessor
::
RedirectionScope
stream
=
MetaProcessor
::
kSTDOUT
;
MetaProcessor
::
RedirectionScope
stream
=
MetaProcessor
::
kSTDOUT
;
if
(
getCurTok
().
is
(
tok
::
constant
))
{
if
(
getCurTok
().
is
(
tok
::
constant
)
&&
lookAhead
(
1
).
is
(
tok
::
greater
)
)
{
// > or 1> the redirection is for stdout stream
// > or 1> the redirection is for stdout stream
// 2> redirection for stderr stream
// 2> redirection for stderr stream
constant_FD
=
getCurTok
().
getConstant
();
constant_FD
=
getCurTok
().
getConstant
();
...
...
This diff is collapsed.
Click to expand it.
interpreter/cling/test/Prompt/OutputRedirect.C
+
3
−
0
View file @
05bb823c
...
@@ -19,6 +19,9 @@ static void setup() {
...
@@ -19,6 +19,9 @@ static void setup() {
}
}
setup
();
setup
();
// ROOT-8696
.
5
//CHECKOUT: (double) 0.500000
.
2
>&
1
.
2
>&
1
std
::
cerr
<<
"Error into stdout.
\n
"
;
std
::
cerr
<<
"Error into stdout.
\n
"
;
//CHECKOUT: Error into stdout.
//CHECKOUT: Error into stdout.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment