From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29416 invoked by alias); 20 Aug 2018 15:03:36 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23593 Received: (qmail 25121 invoked by uid 1010); 20 Aug 2018 15:03:36 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-10.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(80.0.253.74):SA:0(-1.9/5.0):. Processed in 1.266816 secs); 20 Aug 2018 15:03:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: dave@dawoodfall.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Originating-IP: [82.40.94.2] X-Authenticated-User: X-Spam: 0 X-Authority: v=2.3 cv=Ipswjo3g c=1 sm=1 tr=0 a=EH02hVpzcg1gP5HQFHlsKw==:117 a=EH02hVpzcg1gP5HQFHlsKw==:17 a=IkcTkHD0fZMA:10 a=q2GGsy2AAAAA:8 a=a1Uoi5jeAAAA:8 a=0JTkm6Xz2WZrOQrTEdMA:9 a=QEXdDO2ut3YA:10 a=z9dJwno5l634igLiVhy-:22 a=b5GIbgGVya4qEPgWM5ed:22 Date: Mon, 20 Aug 2018 15:51:56 +0100 From: David Woodfall To: zsh-users@zsh.org Subject: Re: scp completion options Message-ID: <20180820145156.GB27099@blackswan> Mail-Followup-To: zsh-users@zsh.org References: <20180626230654.GK11049@blackswan> <20180627081516eucas1p200d804de13d1e5a4f7ea223ecb2d9c49~79k6870Wv1727517275eucas1p2j@eucas1p2.samsung.com> <20180627101312.GL11049@blackswan> <20180628083835eucas1p2cb57feab1bca1540ed0a89cd6e26b9bb~8RikRcvz81808218082eucas1p2p@eucas1p2.samsung.com> <20180628201457.GG21870@blackswan> <20180628205619.GH21870@blackswan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1+44 (f0772c95) (2018-07-17) X-CMAE-Envelope: MS4wfEbessEHu3uPd3UBa+m0EML8qhqS94IA3oBChxcb1MFmexQCTqdE/8CJ5VSAA8nMtgTwPq8u3LfVxmgnE0w/37k/wnS8nm2TYMtMxPcDS65zU48mz+Pl x9+kMPWGMV+dNukN7rJFFocBVmuHl7vURj4= On Thursday 28 June 2018 17:31, Bart Schaefer put forth the proposition: > On Thu, Jun 28, 2018 at 1:56 PM, David Woodfall wrote: > > > > Things I've tested so far: > > > > [...] > > _remote_files is most likely running > ssh -o BatchMode=yes -a -x $host ls -d1FL -- > where $host is obviously the remote name. Try running that directly > from your command line and see what you get. > > Try again replacing "ls" with /bin/ls just in case an alias is somehow > being invoked, or find out if you have some other "ls" in the default > search path. Well I had another look at the problem of those escape characters today and think that I've found the problem. I made a ssh function some time ago that would change my screen title to user@host: ssh() { print -n "\ek${*##* }\e\\" /usr/bin/ssh $@ print -n \\ek${${(%)SCREEN//screen-*/%~}#\~/}\\e\\\\ } I didn't realize that scp would also run the ssh binary. I assumed that its autocomplete stuff was some build-in code. To get around this I renamed the ssh function to mmmssh and then created alias ssh='mmmssh' Aliases are only available in an interactive shell. Pretty daft way to get a user@host but it works. There's probably a more sane way to do this. Thanks for all the help and clues where to look. -Dave -- Besides, its really not worthwhile to use more than two times your physical ram in swap (except in a select few situations). The performance of the system becomes so abysmal you'd rather heat pins under your toenails while reciting Windows95 source code and staring at porn flicks of Bob Dole than actually try to type something. -- seen on c.o.l.development.system, about the size of the swap space .--. oo (____)// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'