Menu

#37 jtag -n with no args drops through to shell prompt

0.10
closed-fixed
UrJTAG (101)
5
2008-02-07
2008-02-05
Andrew Dyer
No

Running 'jtag -n' with no arguments drops through to a shell prompt and does not got to the command line.

The specific problem is in src/jtag.c line 502 where 'go' is checked before printing the command line prompt and running jtag_readline_loop(). In the case of specifying --norc with no command line script file, go never gets set to one.

Index: jtag.c

--- jtag.c (revision 995)
+++ jtag.c (working copy)
@@ -380,6 +380,7 @@

case 'n':
norc = 1;
+ go = 1; /* set so that in the absence of a command line file will go to prompt */
break;

case 'h':

fixes this problem.

Discussion

  • Kolja Waschk

    Kolja Waschk - 2008-02-07
    • labels: --> UrJTAG
    • milestone: --> 0.x
    • assigned_to: nobody --> kawk
    • status: open --> closed-fixed
     
  • Kolja Waschk

    Kolja Waschk - 2008-02-07

    Logged In: YES
    user_id=478715
    Originator: NO

    Hi, thanks, fixed in revision #999

     
  • Kolja Waschk

    Kolja Waschk - 2017-02-12
    • Group: 0.x --> 0.10
     

Log in to post a comment.