0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

aliasでzsh:bad assignmentの対処法

Posted at

zshコマンドでbad assignmentと出力されるケース

windowsのコマンドプロンプトではclsがclearに相当していたので以下のようなエイリアスを組もうとするとエラーが出る.

alias cls = 'clear'
zsh:bad assignment

これは=の両端に空白を開けたことによる影響でエラーが生じている。
そのため、以下のように記述し直せばエラーを起こすことなく実行できる。

alias cls="clear"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?