Bug 243570 - JJ: Remote Shell command results should be editable but are not
Summary: JJ: Remote Shell command results should be editable but are not
Status: NEW
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin Doyle CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2008-08-08 08:21 EDT by Denise Schmidt CLA
Modified: 2008-09-23 13:01 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denise Schmidt CLA 2008-08-08 08:21:37 EDT
RSE Build ID: M20080722-0600

I have seen some issues with the remote shell running on Windows and connected to an AIX machine.  Most results from ls commands show up as editable so I can double click on them and bring them up in the editor or change directory.  I've seen a few cases where the results are not editable but I believe they should be since the result can be resolved to a specific file or directory.  See example commands and results:

/home/apps/denises/rsetest>
ls /home/apps/denises/rsetest/dir1/*
/home/apps/denises/rsetest/dir1/file1
/home/apps/denises/rsetest/dir1/file2
/home/apps/denises/rsetest/dir1/file3

/home/apps/denises/rsetest>
ls dir1/*
dir1/file1
dir1/file2
dir1/file3

/home/apps/denises/rsetest>
ls -d /home/apps/denises/rsetest/dir2/*
/home/apps/denises/rsetest/dir2/dir3

/home/apps/denises/rsetest>
ls -d dir2/*
dir2/dir3

/home/apps/denises/rsetest>
ls /home/apps/denises/rsetest/dir1/file1
/home/apps/denises/rsetest/dir1/file1

Basically if the command results are an absolute path or a relative path from the current directory, I believe the results should be editable but they are not.

Another thing I noticed is that if I run a command that results in a file from another directory that happens to have the same name as one in the current directory, the result is editable and if I double click, I get the one in the current directory.  I understand why this happens but it could be confusing to the user.  See example below where a file named "file4" exists in the current directory and in another directory.  The result of the second ls command shows file4 as editable.

/home/apps/denises/rsetest/dir4>
ls
file4
/home/apps/denises/rsetest/dir4>
ls ../dir2/dir3
file4
file5
Comment 1 Martin Oberhuber CLA 2008-08-08 09:12:34 EDT
Ok, I think this should be really simple to do and the method to fix should be

   SystemViewRemoteOutputAdapter.outputToFile(IRemoteOutput)

in plugin org.eclipse.rse.shells.ui -- Denis would you want to give it a try and fix this yourself? I can help out with instructions how to get the source, start the debugger etc.
Comment 2 Denise Schmidt CLA 2008-08-08 09:22:09 EDT
Unfortunately at this time I have a budget problem.  I have just enough budget to roll out our Eclipse environment including RSE to the rest of our SW team over the next few weeks.  As our next wave of budget comes in (in the next couple of months I hear) I would have more opportunity to contribute.  Thank you for offering.  It would be nice to be able to give back to the community and I hope our group will in the not too far off future.