Fossil

Diff
Login

Diff

Differences From Artifact [4f78422b19]:

To Artifact [13fd70029e]:


921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
  char *zCmd;
  blob_zero(&script);
  blob_appendf(&script, "set fossilcmd {| \"%/\" %s --html -y -i -v",
               g.nameOfExe, zSubCmd);
  for(i=firstArg; i<g.argc; i++){
    const char *z = g.argv[i];
    if( z[0]=='-' ){
      if( sqlite3_strglob("*-html",z) ) continue;
      if( sqlite3_strglob("*-y",z) ) continue;
      if( sqlite3_strglob("*-i",z) ) continue;
      /* The undocumented --script FILENAME option causes the Tk script to
      ** be written into the FILENAME instead of being run.  This is used
      ** for testing and debugging. */
      if( sqlite3_strglob("*-script",z) && i<g.argc-1 ){
        i++;
        zTempFile = g.argv[i];
        continue;
      }
    }
    blob_append(&script, " ", 1);
    shell_escape(&script, z);







|
|
|



|







921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
  char *zCmd;
  blob_zero(&script);
  blob_appendf(&script, "set fossilcmd {| \"%/\" %s --html -y -i -v",
               g.nameOfExe, zSubCmd);
  for(i=firstArg; i<g.argc; i++){
    const char *z = g.argv[i];
    if( z[0]=='-' ){
      if( !sqlite3_strglob("*-html",z) ) continue;
      if( !sqlite3_strglob("*-y",z) ) continue;
      if( !sqlite3_strglob("*-i",z) ) continue;
      /* The undocumented --script FILENAME option causes the Tk script to
      ** be written into the FILENAME instead of being run.  This is used
      ** for testing and debugging. */
      if( !sqlite3_strglob("*-script",z) && i<g.argc-1 ){
        i++;
        zTempFile = g.argv[i];
        continue;
      }
    }
    blob_append(&script, " ", 1);
    shell_escape(&script, z);