FS#46318 - [zsh] (slightly) incoherent brace balancing behaviour
Attached to Project:
Arch Linux
Opened by Kor Dump (Kordump) - Wednesday, 16 September 2015, 19:28 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 22 November 2015, 11:54 GMT
Opened by Kor Dump (Kordump) - Wednesday, 16 September 2015, 19:28 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 22 November 2015, 11:54 GMT
|
Details
*** Description: sometimes `export` is greedy with },
sometimes not. ***
When using `export name=$(command)` inside a function, different behaviours can be noticed : > `function foo1(){export bar1=$(echo 'Any-command-here')}` * valid when executed * valid when sourced in zsh 5.0.8-1 * invalid when sourced in zsh 5.1.1-1 > `function foo1(){export bar1=$(echo 'Any-command-here')} }` * invalid when executed * invalid when sourced in zsh 5.0.8-1 * valid when sourced in zsh 5.1.1-1 This difference in behaviour is new in zsh 5.1.1-1, can broke a working zsh 5.0.8-1 script or zshrc, and may be confusing. *** Additional info: *** * zsh 5.1.1-1 * test file attached *** Steps to reproduce: *** * Downlaod attached test file * Source it in zsh 5.0.8-1 * Execute it in zsh 5.0.8-1 * Source it in zsh 5.1.1-1 * Execute it in zsh 5.1.1-1 |
This task depends upon
okml.zsh