Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some special characters disturb the command line on Linux. #99

Closed
zerikv opened this issue Feb 13, 2014 · 3 comments
Closed

Some special characters disturb the command line on Linux. #99

zerikv opened this issue Feb 13, 2014 · 3 comments

Comments

@zerikv
Copy link
Contributor

zerikv commented Feb 13, 2014

Hello,

I have problems with arguments of command line on Linux when they contain special characters like: ! < >

When the bash expands the command line, < and > are interpreted as stream redirectors and ! as selector in the history.

To solve this issue I have added these characters in the constant com.xebialabs.overthere.CmdLineArgument.SPECIAL_CHARS_UNIX

Eric

@vpartington
Copy link
Contributor

Hi Eric,

Good point. I'll fix this in the next release of Overthere, planned for early March 2014.

Regards, Vincent.

@Naba0106
Copy link

Naba0106 commented Jun 9, 2020

What if we actually want to use stream redirects?

@Naba0106
Copy link

Naba0106 commented Jun 9, 2020

Got it, have to use addRaw(">"):

CmdLine.build("echo", "-e", "test").addRaw(">").addRaw("test.txt")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants