13
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【-bash: export: `=': not a valid identifier】環境変数の設定の注意事項

Posted at

エラー

環境変数を設定する際に

-bash: export: `=': not a valid identifier

というエラーが吐かれた。

解決策

環境変数を設定する際に、
export 環境変数="変数名" ○ export 環境変数 = "変数名" ☓

のように環境変数と変数名の間に半角スペースを開けてはならない。

開けるとエラーが発生する。

13
5
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
13
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?