News for hackers. Stuff that matters.
Re:Wikifunctions by chatmasta on Wednesday December 06, 2023 @06:23PM (#38550861)
It depends on language, library, and which substring function. And in some languages, like Bash IIRC, some functions and scripts handle differently `foo=""` (variable foo is set to empty string) and `foo=` (variable foo is not set).
Re:Wikifunctions by account42 on Friday December 08, 2023 @05:34AM (#38567433)
`foo=` does set the variable to empty in Bash and other POSIX compliant shells.