fish-shell

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
fish-shell [2020/10/26 12:30] mumeiyamibitofish-shell [2023/05/12 15:15] (現在) – [rsync や scp で fish をインストールしたリモートサーバにファイルを転送できない (旧方法)] mumeiyamibito
行 294: 行 294:
  
  
 +==== ハイフンの入った文字列の置換ができない ====
 +  * 問題: ''string replace'' でハイフンの入ったパターンを置換できない。
 +  * 解決策: ''replace'' の後に ''--'' (ハイフン 2 つ) を入れる。
 +    * 例: <code bash>
 +$ string replace -- '-min' '' 'hoge-min.js'
 +hoge.js
 +</code>
 +
 +  * 参考サイト: [[https://github.com/fish-shell/fish-shell/issues/3416 | string command fails if input starts with a dash · Issue #3416 · fish-shell/fish-shell · GitHub]]
 ===== 参考サイト ===== ===== 参考サイト =====
   * [[http://fish.rubikitch.com/document-ja/ | fish2.4日本語ドキュメント:すぐ使える25の便利機能と実例]]   * [[http://fish.rubikitch.com/document-ja/ | fish2.4日本語ドキュメント:すぐ使える25の便利機能と実例]]
  • fish-shell.1603683029.txt.gz
  • 最終更新: 2020/10/26 12:30
  • by mumeiyamibito