Sample Header Ad - 728x90

Behaviour of single and double quotes depending on shell

0 votes
1 answer
615 views
I've been scratching my head for quite some time with this.... Inspired by this answer , I'm trying to run 'ack' and to find either a single quote or a double quote in source files. Doing this in **bash** perfectly works: ack --cpp "['\"]" But doing the same in **tcsh** gives me: Unmatched ". One of the alternatives I have tried is to essentially swap the single and double quotes, leading to ack --cpp '[\'"]'. But I'm still getting the same Unmatched ". No matter what I try, I don't seem to be able to get the wanted behaviour in tcsh. Any suggestions ?
Asked by DaveC (1 rep)
Sep 2, 2021, 01:48 AM
Last activity: Jul 20, 2023, 02:33 PM