Is it possible to echo out a string in tcsh such that it is fully escaped, as tcsh would understand? In the same way as printf %q works in bash:
% # Create a variable containing a tab character
% MYMONKEY=$'my\tmonkey'
% printf %q "$MYMONKEY"
$'my\tmonkey'
Which can then be used to re-input the variable into bash. Anyone know of anything similar in tcsh?