kayo289 / minishell

Shell redevelopment.
1 stars 1 forks source link

本来の挙動とは異なるが、pdfの仕様にあっていないもの #306

Closed kayo289 closed 2 years ago

kayo289 commented 3 years ago

unset ' \"$&`\n' → 本来だとエラーが出る → 我らは何もでない

kayo289 commented 3 years ago

一般的な文字以外の特殊文字の入力が禁止されているからエラーが出る。"$"や"&"や"`"や"\n"をそれぞれ単体でunsetを検証しても同様なエラーが出たため。"

kayo289 commented 2 years ago

環境変数の名前に許されている文字

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