java - Stop Linux Terminal from going to new line when pressing enter -


i'm working on simple java cypher program. that's why there strange characters.

i'm attempting run command in linux terminal:

user@ubuntu> java code d ÖÝßÛ³eb©«åãá⡧ÌÚب¬Ý¢¤¤°kkicÒÒ××⥡ÏÛÛÐë`§ÞØÝßòÓ key 

with being said, when press enter happens:

user@ubuntu> java code d ÖÝßÛ³eb©«åãá⡧ÌÚب¬Ý¢¤¤°kkicÒÒ××⥡ÏÛÛÐë`§ÞØÝßòÓ key > > > > 

a new line appears each time press enter. how can run command?

this happens because argument contain backtick (`), special shell character. try putting special characters in strong quotes:

user@ubuntu> java code d 'ÖÝßÛ³eb©«åãá⡧ÌÚب¬Ý¢¤¤°kkicÒÒ××⥡ÏÛÛÐë`§ÞØÝßòÓ' key 

single quotes (', distinct `) prevents shell trying interpret argument.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -