Consider the following shell code:
unset foo echo "${foo-'}'}"
The result depends on which shell is used:
'}'
''}
Missing }.
Which shell behaves in accordance with the POSIX standard?
POSIX-compatible shell should output:
Source: https://habr.com/ru/post/1688203/More articles:What is Julia's best approximation to attributes of R objects? - rAll possible positions of the knight in n movements - an endless loop in the prologue - infinite-loopКарты ESRI, дающие Main Thread Checker: API интерфейса API, вызываемый фоновым потоком в iOS 11 - multithreadingpython regular expressions - how to get all the names in a string? - pythonEnding a loop with EOF (no input) - cHow to extract substring using inverse pattern using R? - stringWhy not use enctype = "multipart / form-data" always? - htmlHow to sort strings of a binary array as if they were long binary numbers? - pythonОбновление ANDROID STUDIO 3.0: Ошибка: не удалось разрешить все файлы для конфигурации ': app: xxxxxxxDebugCompileClasspath' - androidSeparate all elements in a row with the maximum value in a row - faster approach - rAll Articles