This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 186439 - Expand ~<user> and $shell variables.
Summary: Expand ~<user> and $shell variables.
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Directory Chooser (show other bugs)
Version: 6.x
Hardware: All Unix
: P4 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 14:24 UTC by ivan
Modified: 2010-10-07 10:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ivan 2010-05-20 14:24:32 UTC
There's some code in SunStudio that Tor wrote a long time ago
which uses a FileSystemView and expands ~'s and $shell variables.
The latter is useful because a class of unix users use shell variables
as shorthand for where their projects are located.
I'm getting rid of it because unless it's universally available in all
of NB it's not really useful.

NB currently expands ~ but not ~<user> because it has no access to
getpwent(). That's something we may want to do using JNA some day.

This rfe is mainly a reminder so that if we ever want to expand
$shell variables we may reuse Tors old code, or not.
It was in utils.IpeUtils.expandPath() and utils.UnixFileSystemView.