<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          import

          聯(lián)合創(chuàng)作 · 2023-09-30 05:06

          import

          import is a simple and fast module system for Bash and other Unix shells.

          Inspired by Go's import command, you specify the URL of the shell script, and the import function downloads the file and caches it locally, forever.

          The code will never change from below your feet, and will continue to work offline.

          ?? Example

          https://git.io/fAWiz ← This URL contains a simple add shell function:

          add() {
            expr "$1" + "$2"
          }

          You can use the import function to download, cache, and use that function in your own script:

          #!/usr/bin/env import
          
          # The URL is downloaded once, cached forever, and then sourced
          import "https://git.io/fAWiz"
          
          add 20 22
          # 42

          ?? Compatibility

          The core import function is fully POSIX-compliant, and maximum compatibility is the goal. import is unit tested against the following shell implementations:

          • ash - Almquist Shell (BusyBox ash and Debian dash)
          • ksh - KornShell (oksh, mksh and loksh flavors)
          • zsh - Z Shell
          • bash - GNU's Bourne Again Shell

          ?? Documentation

          瀏覽 17
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  欧美在线成人免费 | 无码中文字幕无码视频在线观看 | 人人操人人摸人人看 | 精品国产18久久久久久 | 天天操天天舔天天日 |