4 ms·
I'm using tcsh, and recently found out that it is practically impossible to enter curly-braces { } into it. For example: echo "{" echo '{' echo "\{
by amelius 11y ago
I'm using tcsh, and recently found out that it is practically impossible to enter curly-braces { } into it. For example:
echo "{"
echo '{'
echo "\{"
echo '\{'
all fail. This makes tcsh totally unsuitable to work with, for example, JSON expressions.
- saurik 11y agoI just opened tcsh and all of "{", '{', and \{ (an option you missed) work.
- amelius 11y agoHmm, okay, upon closer inspection, you are right. The problem I have is that I have the following definition in my .cshrc file: alias precmd 'echo `date` "#@#" `pwd` "#@#" `history 1` >> ~/.complete_history' This basically saves all my commands to a file (which is very handy, by the way). So somehow this interferes with the curly braces. I put the history part in double-quotes, and now it works: alias precmd 'echo `date` "#@#" `pwd` "#@#" "`history 1`" >> ~/.complete_history' Thanks for helping me solve this :)