Closed kayo289 closed 2 years ago
一般的な文字以外の特殊文字の入力が禁止されているからエラーが出る。"$"や"&"や"`"や"\n"をそれぞれ単体でunsetを検証しても同様なエラーが出たため。"
環境変数の名前に許されている文字
Environment variable names used by the utilities in the Shell and Utilities volume of IEEE Std 1003.1-2001 consist solely of uppercase letters, digits, and the '_' (underscore) from the characters defined in Portable Character Set and do not begin with a digit. Other characters may be permitted by an implementation; applications shall tolerate the presence of such names.
https://pubs.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap08.html
https://stackoverflow.com/questions/2821043/allowed-characters-in-linux-environment-variable-names
unset ' \"$&`\n' → 本来だとエラーが出る → 我らは何もでない