[forge-issues] [JBoss JIRA] (FORGE-1033) Review the path spec for shell file and directory paths on Linux and Windows

Vineet Reynolds (JIRA) jira-events at lists.jboss.org
Tue Jul 23 16:39:10 EDT 2013


     [ https://issues.jboss.org/browse/FORGE-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vineet Reynolds updated FORGE-1033:
-----------------------------------

    Description: 
Coming from the fix for FORGE-93, it is desirable to document the path specification for files and directories in both Linux (and Mac OS X), and Windows. In Linux, {{'/'}} is the only allowed separator, whereas in Windows, both {{'\'}} and {{'/'}} are allowed.

This obviously has an impact on the FSH script compatibility across these OSes. On the other hand, constraining the directory separator to {{'/'}} for Windows, to achieve commonality would probably work against usability as well as result in unusable paths in Windows.

Additionally, escape sequences need to be determined (for escaping whitespaces and other characters that can be interpreted differently by the shell), and whether paths need to be quoted to handle whitespaces etc.

Discuss.

  was:
Coming from the fix for FORGE-93, it is desirable to document the path specification for files and directories in both Linux (and Mac OS X), and Windows. In Linux, {{'/'}} is the only allowed separator, whereas in Windows, both {{'\'}} and {{'/'}} are allowed.

This obviously has an impact on the FSH script compatibility across these OSes. On the other hand, constraining the directory separator to {{'/'}} for Windows, to achieve commonality would probably work against usability as well as result in unusable paths in Windows.

Additionally, escape sequences need to be determined, and whether paths need to be quoted to handle whitespaces etc.

Discuss.


    
> Review the path spec for shell file and directory paths on Linux and Windows
> ----------------------------------------------------------------------------
>
>                 Key: FORGE-1033
>                 URL: https://issues.jboss.org/browse/FORGE-1033
>             Project: Forge
>          Issue Type: Task
>          Components: UI - Shell
>    Affects Versions: 1.3.3.Final
>            Reporter: Vineet Reynolds
>             Fix For: 2.x Future
>
>
> Coming from the fix for FORGE-93, it is desirable to document the path specification for files and directories in both Linux (and Mac OS X), and Windows. In Linux, {{'/'}} is the only allowed separator, whereas in Windows, both {{'\'}} and {{'/'}} are allowed.
> This obviously has an impact on the FSH script compatibility across these OSes. On the other hand, constraining the directory separator to {{'/'}} for Windows, to achieve commonality would probably work against usability as well as result in unusable paths in Windows.
> Additionally, escape sequences need to be determined (for escaping whitespaces and other characters that can be interpreted differently by the shell), and whether paths need to be quoted to handle whitespaces etc.
> Discuss.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list