You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Arno Toell (JIRA)" <ji...@apache.org> on 2011/01/12 03:20:46 UTC

[jira] Created: (TS-635) `tsxs' fails to recognize command line switches

`tsxs' fails to recognize command line switches
-----------------------------------------------

                 Key: TS-635
                 URL: https://issues.apache.org/jira/browse/TS-635
             Project: Traffic Server
          Issue Type: Bug
          Components: TSAPI
    Affects Versions: 2.1.5
            Reporter: Arno Toell
            Priority: Minor
             Fix For: 2.1.5


The compile and linking helper `tsxs', shipped with traffic server fails to recognize command line switches if they are supplied out of order:

{noformat} 
root@test1:~/build-area/example/session-1# tsxs -o session.so -c session-1.c 
  compiling session-1.c -> session-1.lo
  compiling  -> 
gcc: argument to '-o' is missing
Compile failed: gcc -I/usr/include -fpic -c -o
root@test1:~/build-area/example/session-1# tsxs -c session-1.c -o session.so
  compiling session-1.c -> session-1.lo
  linking -> session.so
{noformat} 

This happens because the script triggers immediate action if a switch is encountered while parsing the command line. A better approach would be to parse the command line first and handle later. 

Since this is a reasonable small script I'd offer to redo it in Perl in a cleaner way if you want to get rid of that limited shell code. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TS-635) `tsxs' fails to recognize command line switches

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom resolved TS-635.
------------------------------

    Resolution: Fixed

I believe this is resolved, please reopen if still an issue.

> `tsxs' fails to recognize command line switches
> -----------------------------------------------
>
>                 Key: TS-635
>                 URL: https://issues.apache.org/jira/browse/TS-635
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: TS API
>    Affects Versions: 2.1.5
>            Reporter: Arno Toell
>            Assignee: Theo Schlossnagle
>            Priority: Minor
>             Fix For: 2.1.6
>
>
> The compile and linking helper `tsxs', shipped with traffic server fails to recognize command line switches if they are supplied out of order:
> {noformat} 
> root@test1:~/build-area/example/session-1# tsxs -o session.so -c session-1.c 
>   compiling session-1.c -> session-1.lo
>   compiling  -> 
> gcc: argument to '-o' is missing
> Compile failed: gcc -I/usr/include -fpic -c -o
> root@test1:~/build-area/example/session-1# tsxs -c session-1.c -o session.so
>   compiling session-1.c -> session-1.lo
>   linking -> session.so
> {noformat} 
> This happens because the script triggers immediate action if a switch is encountered while parsing the command line. A better approach would be to parse the command line first and handle later. 
> Since this is a reasonable small script I'd offer to redo it in Perl in a cleaner way if you want to get rid of that limited shell code. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (TS-635) `tsxs' fails to recognize command line switches

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom reassigned TS-635:
--------------------------------

    Assignee: Theo Schlossnagle

Theo, please advice on this bug, do we need this addressed for v2.1.6 ?

> `tsxs' fails to recognize command line switches
> -----------------------------------------------
>
>                 Key: TS-635
>                 URL: https://issues.apache.org/jira/browse/TS-635
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: TS API
>    Affects Versions: 2.1.5
>            Reporter: Arno Toell
>            Assignee: Theo Schlossnagle
>            Priority: Minor
>             Fix For: 2.1.6
>
>
> The compile and linking helper `tsxs', shipped with traffic server fails to recognize command line switches if they are supplied out of order:
> {noformat} 
> root@test1:~/build-area/example/session-1# tsxs -o session.so -c session-1.c 
>   compiling session-1.c -> session-1.lo
>   compiling  -> 
> gcc: argument to '-o' is missing
> Compile failed: gcc -I/usr/include -fpic -c -o
> root@test1:~/build-area/example/session-1# tsxs -c session-1.c -o session.so
>   compiling session-1.c -> session-1.lo
>   linking -> session.so
> {noformat} 
> This happens because the script triggers immediate action if a switch is encountered while parsing the command line. A better approach would be to parse the command line first and handle later. 
> Since this is a reasonable small script I'd offer to redo it in Perl in a cleaner way if you want to get rid of that limited shell code. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TS-635) `tsxs' fails to recognize command line switches

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-635:
-----------------------------

    Fix Version/s:     (was: 2.1.5)
                   2.1.6

> `tsxs' fails to recognize command line switches
> -----------------------------------------------
>
>                 Key: TS-635
>                 URL: https://issues.apache.org/jira/browse/TS-635
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: TSAPI
>    Affects Versions: 2.1.5
>            Reporter: Arno Toell
>            Priority: Minor
>             Fix For: 2.1.6
>
>
> The compile and linking helper `tsxs', shipped with traffic server fails to recognize command line switches if they are supplied out of order:
> {noformat} 
> root@test1:~/build-area/example/session-1# tsxs -o session.so -c session-1.c 
>   compiling session-1.c -> session-1.lo
>   compiling  -> 
> gcc: argument to '-o' is missing
> Compile failed: gcc -I/usr/include -fpic -c -o
> root@test1:~/build-area/example/session-1# tsxs -c session-1.c -o session.so
>   compiling session-1.c -> session-1.lo
>   linking -> session.so
> {noformat} 
> This happens because the script triggers immediate action if a switch is encountered while parsing the command line. A better approach would be to parse the command line first and handle later. 
> Since this is a reasonable small script I'd offer to redo it in Perl in a cleaner way if you want to get rid of that limited shell code. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.