Description of problem: When using ~ in path using CLI completion for file paths (the only place I know of is patch apply command), it is directly passed as String. The ~ is sh specific and Java doesn't understand it. It should be automatically expanded to appropriate value ($HOME) Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. put some valid patch for EAP to ~/ 2. start jboss-cli client 3. use patch apply ~/... with path completion (using tab for completion) Actual results: String remains with ~/.. Expected results: String should be replace with $HOME/.... => /home/username/patch.zip Additional info: ~ in JAVA doesn't have the same special meaning as it has in bash
Looks like it's been fixed in wildfly 8.0.0.Final. The string, though, is still not replaced on the command line, it remains looking the way the user entered it. The tab-completion works properly, though, and the path gets resolved correctly during the command execution.
The PR is https://github.com/jbossas/jboss-eap/pull/1531
Using EAP 6.2.1 patch for test purposes. 6.3.0.GA [disconnected /] patch apply ~/jboss-eap-6.2.1.zip Path /home/pkremens/jboss-eap-6.3/bin/~/jboss-eap-6.2.1.zip doesn't exist. 6.4.0.DR1.1 [disconnected /] patch apply ~/jboss-eap-6.2.1.zip JBAS016840: Patch does not apply - expected (6.2.0.GA), but was (6.4.0.Alpha1) Verified on EAP 6.4.0.DR1.1