Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jolly Roger Newsgroups: comp.sys.mac.system Subject: Re: Being nice to bad software Date: 29 Aug 2016 06:19:14 GMT Lines: 34 Message-ID: References: <57bdda85$0$1250$c3e8da3$1cbc7475@news.astraweb.com> <1msi6ns.1ybfqmo1gngujmN%nmassello@yahoo.com> <57c339d8$0$53467$c3e8da3$b1356c67@news.astraweb.com> <57c38471$0$11918$c3e8da3$3a1a2348@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net RcUVYRsXJQqQAwvJa0SNHwoXlLPysDLwmDonk6ucFB1l1zv4qo Cancel-Lock: sha1:F+VnTRbqt27Ym0ll9adZ5sJg+04= sha1:rWFcOHWyh5HxC0lmEi6/hLdHoIc= User-Agent: NewsTap/5.1.8 (iPhone/iPod Touch) Xref: csiph.com comp.sys.mac.system:94088 JF Mezei wrote: > On 2016-08-28 15:26, Alan Baker wrote: > >> When you paste plain TEXT into bash, it doesn't add escapes. Copy and >> paste a FILE, and it works perfectly. > > Only in TERMINAL.APP no other application does that. This does not work > in an Xterm or other X applications. Wrong, as usual. You haven't used Macs very much if that's what you think. When you copy something to the clipboard in macOS, the application doing the copying often places several different variations of the item being copied onto the clipboard. In the case of copying a file in the Finder application, a textual representation of the file(s) as well as aliases are placed on the clipboard. Pasting the clipboard into any application that supports pasting text (for instance TextWrangler, TextEdit, BBEdit, and so on) results in the filenames being pasted, while pasting into any application that supports pasting files results in aliases being pasted. It is up to each app which data types are supported. And the same concept applies to drag and drop. > If you use terminal.app casually, then you can get uysed to relying on > that copy/paste mechanism. Translation: when you aren't familiar with command-line environments, you get used to relying on inefficient crutches like copying and pasting data between command-line programs rather than sending output from one directly to another. -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR