From: <ad...@ip...> - 2002-04-10 09:47:41
|
Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: >> $ ls -d "/home/adamp/test!~" 2>/dev/null; echo tramp_exit_status $?=20 >> sh: !~": event not found > > Hm. Wait. Probably it is from tramp-handle-file-exists-p, which > _does_ use tramp-shell-quote-argument. That function calls > shell-quote-argument. And that function uses double quotes on Windows > but backslashes on Unix. So, is your Emacs running on Windows? It was, in that case. Maybe the fact that tramp applies 'client' (windows) settings to the 'server' (linux) is a more general issue? For example, options for ls may differ on both machines (and did differ in my case). But I can't see a nice solution short of having a ~/.tramp file *on the server* setting up relevant variables for tramp. That looks a little ugly, though.... > Now I need to find out how to do what shell-quote-argument does on > Unix. Thanks for the hint; I'll see if I can change the behaviour of tramp-shell-quote-argument locally.=20 --=20 Adam P. |