相关疑难解决方法(0)

Ruby“man”文档-使用“\”进行多行注释?

我正在阅读 Ruby 的“man”页面,我看到以下“-S”标志的描述:

-S   Makes Ruby use the PATH environment variable to search for script, unless its name begins with a slash.  This is used to emulate #! on
     machines that don't support it, in the following manner:

           #! /usr/local/bin/ruby
           # This line makes the next one a comment in Ruby \
           exec /usr/local/bin/ruby -S $0 $*

     On some systems $0 does not always contain the full pathname, so you need the -S switch to tell Ruby to search for …
Run Code Online (Sandbox Code Playgroud)

ruby

2
推荐指数
1
解决办法
65
查看次数

标签 统计

ruby ×1