matthiasblaesing commented on PR #8998: URL: https://github.com/apache/netbeans/pull/8998#issuecomment-3517990910
@jtulach please have a look at this code: https://github.com/apache/netbeans/blob/d2e1813a533e4b0a48034f47077a5239e8ca45cf/nb/ide.launcher/unix/netbeans#L36-L39 I think this is what @neilcsmith-net meant by "a different way to how other paths are absolutized". My understanding is, that this saves the current directory into variable `old`, then `cd`s to the path denoted by parent of `$progdir`. Invoking `pwd` will now give you the path when the parent of `$progdir` is resolved against the current directory. That value is stored into `$basedir` for later usage. As we are now at the wrong location in the directory tree, we `cd` back into the start directory (using the value from `$old`). This might not be the most efficient way, but it looks sane to me and is small enough to be copyable (IMHO). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
