On Wed, Jul 6, 2011 at 11:12 PM, Sebastian Thörn <[email protected]>wrote:
> Hi guys and gals,
>
> i wonder if there is any chance to implement wildcards (*) into
> the functionality of fish when using scp?
>
> this works in bash:
> $ scp [email protected]:~/Whatever/*.pdf .
>
> This command will transfer all files in ~/Whatever/ ending with .pdf to the
> working directory.
> If i run the same command in fish i get the following:
> ~> scp [email protected]:~/Whatever/*.pdf .
> fish: Warning: No match for wildcard “[email protected]:~/Whatever/*.pdf”.
> The command will not be executed.
> scp [email protected]:~/Whatever/*.pdf .
> ^
>
> I asked around in #fish and SanskritFritz and adisbladis explained to me
> it's because bash is checking my files on the remote site or something. (i
> didn't quit understand)
>
> My question is:
> Would this be possible to implement in fish?
>
> Br
> Sebastian Thör
>
Here is the transcript of that conversation.
10:12 < cHarNe2> hi guys, im having issues with scp and fish
10:12 < cHarNe2> it wont exept my *, same cmd works fine in bash :S
10:18 < SanskritFritz> cHarNe2: provide an example pls
10:20 < cHarNe2> scp [email protected]:~/backup-mac/backup-mac/skrivbord/De*
.
10:21 < SanskritFritz> cHarNe2: this works in bash? wow
10:21 < cHarNe2> why wouldn't it?
10:21 < cHarNe2> iv been doing in that way for years :P
10:21 < SanskritFritz> because that needs bash to look into the server over
an ssh connection
10:22 < SanskritFritz> didnt know bash is able to do that
10:22 < SanskritFritz> are you sure ~/backup-mac/backup-mac/skrivbord/De* is
read from the remote location by
bash?
10:22 < cHarNe2> you sure?
10:23 < cHarNe2> no i just think fish is messing with me
10:23 < adisbladis> cHarNe2: Thats not supposed to work..
10:24 < cHarNe2> works in sh aswell
10:24 < adisbladis> cHarNe2: sh probably is bash
10:24 < cHarNe2> ok
10:25 < SanskritFritz> what I suspect, bash is globbing the files locally
10:26 < adisbladis> SanskritFritz: Sounds reasonable :>
10:27 < cHarNe2> so it's not possible to use fish and scp with * ?
10:27 < adisbladis> cHarNe2: Sure, scp /path/to/somewhere/* username@host:
10:28 < adisbladis> cHarNe2: But I have a feeling that your command does not
work as intended in bash either..
10:28 < cHarNe2> adisbladis: yes, but not * from a host?
10:28 < cHarNe2> "intended"?
10:28 < adisbladis> cHarNe2: No, and like SanskritFritz said, its probably
just globbing your local files
10:28 < cHarNe2> ok
10:28 < SanskritFritz> cHarNe2: that works if the local files are the same
as on the server, and you want to
update them
10:28 < adisbladis> So if you add a file to the server end you will not be
able to scp it over
10:29 < cHarNe2> ok
10:29 < SanskritFritz> exactly
10:31 < cHarNe2> and it's not likley to be implemented?
10:35 < SanskritFritz> cHarNe2: in the near future nothing is likely to get
implemented, but who knows. we have
some activity on the mailing list now, development
could start over anytime again
10:35 < cHarNe2> okay, i see
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users