Re: Passing tab char in command line
- From: "Rhino" <no.offline.contact.please@xxxxxxxxxx>
- Date: Wed, 31 May 2006 15:17:08 -0400
"alejandrina" <apattin@xxxxxxxxx> wrote in message
news:1149096110.999422.142430@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,Have you tried hitting the Tab key rather than typing backslashes and the
I want to pass a tab character as a command line parameter. Ihave this
statement to extract a char from the string:
char delim = args[0].charAt(0);
The problem is how do you write the command line? I've tried all of
these:
java testTab "\t"
java testTab "\\t"
java testTab \t
java testTab \\t
java testTab "\u0009"
java testTab \u0009
none work. "delim" above never gets the right character. Interestingly,
when I submit
java testTab "\u0009" or
java testTab "\\t"
args[0] contains a string of length = 2, the first character being "\"
and the second is the tab. Obviously, the parser feels the need to
"escape" my backslash character. How do you disable this behavior?
Thanks!
't' character?
--
Rhino
.
- References:
- Passing tab char in command line
- From: alejandrina
- Passing tab char in command line
- Prev by Date: Re: create jar file with external jar library
- Next by Date: Re: SoftReference operation synchronization detail
- Previous by thread: Re: Passing tab char in command line
- Next by thread: Re: Passing tab char in command line
- Index(es):
Relevant Pages
|