代码之家  ›  专栏  ›  技术社区  ›  Flux

如何在没有确认的情况下退出MIT计划?

  •  1
  • Flux  · 技术社区  · 6 年前

    假设我有这个程序( myprog.scm

    (display "Hello")
    (newline)
    (exit)
    

    mit-scheme --load 'myprog.scm' .

    但当麻省理工学院的计划达到 (exit) ,提示确认 Kill Scheme (y or n)? . 如何在没有退出确认提示的情况下退出MIT方案?

    0 回复  |  直到 6 年前
        1
  •  0
  •   cube    6 年前

    正如我在麻省理工学院gnu计划中看到的 %exit

    1 ]=> (pp exit)
    (named-lambda (exit #!optional integer)
      (hook/exit (if (eq? integer #!default) #f integer)))
    ;Unspecified return value
    
    1 ]=> (pp hook/exit)
    (named-lambda (default/exit integer)
      (if (prompt-for-confirmation "Kill Scheme")
          (%exit integer)))
    ;Unspecified return value
    
    推荐文章