Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517800 - wildcard in a ssh command dows not work
Summary: wildcard in a ssh command dows not work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-22 17:41 UTC by Mario Bachmann
Modified: 2014-07-22 19:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Bachmann 2014-07-22 17:41:29 UTC
I have two machines:
haswell, x2

On x2 I have a folder /data2/backup/xfsdump/x2/ with system_md0_Woche28_L0.gz in it. 

On haswell I have a folder /data2/backup/xfsdump/x2 with system_md0_Woche29_L0.gz in it. 

Keep in mind we have the same path on both machines. So something with the interpretation of the wildcard goes wrong! 

When I start the folowing commond from the x2, I do not see the file with 29 on the haswell.

ssh root@haswell ls -1ath /data2/backup/xfsdump/x2/system*;

Output is ("not found" in english):
ls: Zugriff auf /data2/backup/xfsdump/x2/system_md0_Woche28_L0.gz nicht möglich: Datei oder Verzeichnis nicht gefunden

I want to see the listing of /data2/backup/xfsdump/x2/system* on the haswell with the file system_md0_Woche29_L0.gz. But it does not work. 

Wildcard seems to autocomplete the filename on the local machine instead of the remote machine. 

So I am sure something goes wrong with the wildcard. I do not know in which part of Linux this is implemented. Kernel? Bash? SSH? I am not sure. 

Perhaps someone can help.
Comment 2 Mario Bachmann 2014-07-22 19:14:03 UTC
It's not a bug, it's a feature! 
Cool! So quotes around a command changes the way of interpretaion even if there are no quotes necessary - very strange behaviour.