Bashのstring{ending1、ending2}構造は何ですか? zshの同等の構造は何ですか?

Bashのstring{ending1、ending2}構造は何ですか? zshの同等の構造は何ですか?

zshに切り替えようとしました。これまでに私が逃したものは次のとおりです。

#!/bin/bash
mv /very/long/path/to/file1.conf{,.old}
#bash expandes that to:
mv /very/long/path/to/file1.conf /very/long/path/to/file1.conf.old

それは何と呼びますか? zshに該当するものはありますか?

ベストアンサー1

知られているサポート拡張にも存在しますzsh

bashとzshの重要な違いは、zshではパラメータ拡張が中括弧内で行われますが、bashではそうではありません。

おすすめ記事