Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: csh (or tcsh) help needed
Date: Thu, 28 Aug 2025 23:00:09 -0400
From: gary%duzan.org@localhost
Message-ID: <3d009384b5f4076c085767b430091b53.squirrel%www.duzan.org@localhost>
| There may be a way to do it properly with backslash_quote set,
That causes \ to always be a quote (more or less) wherever it appears,
so single quoting doesn't defeat it. Michael's version (the one where
he had horrible key bounce...) would probably work OK.
The solution is just to \\ every place a \ is needed (which is what Michael's
solution did originally), and my version of the solution becomes:
alias Q4 "sed -e 's/"'\\\\$'"//g'"
which leads to
alias Q4
sed -e 's/\\$//g'
which then works, as what sed sees is the same as the other way.
It probably doesn't really need saying, but global options like that
which fundamentally change syntax are a truly terrible idea.
kre
Home |
Main Index |
Thread Index |
Old Index