Public bug reported: $variable:[ga]s/string1/string2/ does not work as described
Minimal example: set a='1' echo "${a:as/1/11/}" Hangs. (I assume it keeps replacing 1 by 11.) Minimal example: # & does not generate string1 and cannot be escaped: set a='1&' echo "a: $a:s/1&/\&1/" # produces '\&1', not '&1' echo "a: $a:s/1&/&1/" # produces '&1', not '1&1' Minimal example: # cannot escape the delimiter: set a='1/' echo "a: $a:s/1\//\/1/" # produces '1/\/1/', not '/1' Xubuntu 16.04 LTS, tcsh 6.18.01-5. (But I think I saw this bug before.) No effect of echo_style, backslash_quote variables. ** Affects: tcsh (Ubuntu) Importance: Undecided Status: New ** Attachment added: "bug.txt" https://bugs.launchpad.net/bugs/1716157/+attachment/4947118/+files/bug.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1716157 Title: tcsh variable substring replacement broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tcsh/+bug/1716157/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs