PR# 11044 Please normalise the path to $file_name in External Commands

Problem Report Summary
Submitter: peter_gummer
Category: EiffelStudio
Priority: Low
Date: 2006/08/18
Class: Feature Request
Severity: Serious
Number: 11044
Release: 5.7.62110
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5
Synopsis: Please normalise the path to $file_name in External Commands

Description
When $file_name is expanded to execute an external command, it is simply the concatenation of the class's cluster path plus its file name.

This can result in a path that contains dots.

Apart from looking messy when displayed, some applications do not work unless the path is normalised.

Please normalise the path generated by $file_name. For example, instead of "c:\projects\sample\.\root_class.e", please generate "c:\projects\sample\root_class.e".

There is a work-around for this on windows. Instead of this command:
echo "$file_name"
Issue this command:
for %i in ("$file_name") do echo %~fi
To Reproduce
1. Create an external command echo "$file_name".

2. Open a class in the editor that is in a cluster whose path is ".".

3. Run the external command. Notice how the path displayed includes the dot, e.g., "c:\projects\sample\.\root_class.e".
Problem Report Interactions