Can't use sftp commands from within directories with brackets in the name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
portable OpenSSH |
Unknown
|
Unknown
|
|||
openssh (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Over sftp, I can navigate into directories with brackets in the name, but I can't do anything once I'm there. The suggestions in bug 267980 don't fix this, because I can't escape the directory name when I'm not even writing it in the 'ls' command.
To replicate:
/tmp$ mkdir \[test\]
/tmp$ sftp localhost
Connecting to localhost...
sftp> cd /tmp
sftp> cd \[test\]
sftp> ls
Can't ls: "/tmp/[test]" not found
sftp> pwd
Remote working directory: /tmp/[test]
ProblemType: Bug
Architecture: i386
Date: Tue Mar 2 09:29:46 2010
DistroRelease: Ubuntu 9.10
Package: openssh-client 1:5.1p1-6ubuntu2
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: openssh
Uname: Linux 2.6.31-19-generic i686
I can confirm this behavior.
Works with get (get /tmp/\[test\]/moo) and even with ls from outside the directory (ls /tmp/\[test\]). Just not when you cd to it.