Libraryless. Click here for Pure Java version (2964L/17K).
sS relativeCmdToAbsoluteUsingPath(S cmd) { if (!startsWithLetterOrDigit(cmd)) ret cmd; File f = findCmdOnPATH(cmd); ret f != null ? platformQuoteOpt(f) : cmd; }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031210 |
| Snippet name: | relativeCmdToAbsoluteUsingPath |
| Eternal ID of this version: | #1031210/1 |
| Text MD5: | 6725f92136a45cf710121d6daccb719c |
| Transpilation MD5: | caa29b64b9b64758bb6c8d83f88d51d9 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-05-20 17:14:43 |
| Source code size: | 170 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 367 / 482 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |