Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #93901 > unrolled thread

Being nice to bad software

Started by"Happy.Hobo" <Happy.Hobo@Spam.Invalid>
First post2016-08-24 12:11 -0500
Last post2016-08-25 22:31 +0000
Articles 20 on this page of 153 — 12 participants

Back to article view | Back to comp.sys.mac.system


Contents

  Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-24 12:11 -0500
    Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-24 10:26 -0700
      Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-08-24 13:33 -0400
        Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-24 10:47 -0700
          Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-24 16:29 -0500
            Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-24 14:44 -0700
              Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-24 16:49 -0500
                Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-24 16:33 -0700
                  Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 11:29 -0500
                    Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 16:41 +0000
                      Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 11:53 -0500
                        Re: Being nice to bad software nospam <nospam@nospam.invalid> - 2016-08-25 12:58 -0400
                        Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 17:09 +0000
                          Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 13:37 -0500
                            Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 18:39 +0000
                              Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 16:05 -0500
                                Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 21:16 +0000
                        Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 11:31 -0700
                          Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 13:39 -0500
                            Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 18:40 +0000
                            Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 14:11 -0700
                      Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 11:34 -0700
                      Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-08-28 15:26 -0400
                        Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-29 01:08 +0000
                    Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 09:49 -0700
          Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-08-25 11:09 -0400
            Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 08:15 -0700
              Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-08-25 11:22 -0400
                Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 08:28 -0700
                Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 15:32 +0000
                  Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-08-28 15:23 -0400
                    Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-28 12:27 -0700
        Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-24 19:42 +0000
          Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-24 16:31 -0500
            Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-24 14:44 -0700
            Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 01:33 +0000
              Re: Being nice to bad software nmassello@yahoo.com (Neill Massello) - 2016-08-24 20:58 -0600
                Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 15:29 +0000
                  Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 11:32 -0500
                    Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 16:50 +0000
                      Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 13:22 -0500
                        Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 11:28 -0700
                        Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 18:38 +0000
                          Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 16:07 -0500
                        Re: Being nice to bad software nospam <nospam@nospam.invalid> - 2016-08-25 17:22 -0400
                    Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 10:52 -0700
                      Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 13:25 -0500
                        Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 11:28 -0700
                  Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-08-28 15:21 -0400
                    Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-28 12:26 -0700
                      Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-08-28 20:40 -0400
                        Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-28 18:11 -0700
                        Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-08-29 03:07 +0000
                          Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-08-29 05:51 -0400
                            Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-08-29 13:13 +0000
                            Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-29 15:36 +0000
                        Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-29 06:19 +0000
                          Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-29 11:43 -0500
                            Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-29 16:55 +0000
                              Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-29 14:39 -0500
                                Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-29 19:57 +0000
                            Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-29 10:40 -0700
                    Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-08-29 03:05 +0000
            Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-08-25 22:41 +0000
              Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-28 23:33 -0500
                Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-29 16:03 +0000
                  Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-29 11:46 -0500
                    Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-29 17:02 +0000
                      Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-29 14:40 -0500
                        Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-29 19:57 +0000
                          Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-31 13:46 -0500
                            Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-31 19:11 +0000
                            Re: Being nice to bad software Don Bruder <dakidd@sonic.net> - 2016-08-31 13:46 -0700
                              Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-31 23:56 +0000
                                Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-09-01 00:34 -0400
                                  Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-31 21:43 -0700
                                  Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-09-01 15:49 +0000
                                    Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-09-01 13:02 -0400
                                      Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-09-01 17:42 +0000
                                        Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-09-01 13:50 -0400
                                          Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-09-01 18:05 +0000
                                          Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-09-01 15:03 -0700
                                            Re: Being nice to bad software nmassello@yahoo.com (Neill Massello) - 2016-09-01 17:25 -0600
                                          Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-09-02 16:21 +0000
                                      Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-09-02 16:06 +0000
                              Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-31 17:22 -0700
                              Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-09-01 03:19 +0000
                              Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-09-02 01:25 -0500
          Re: Being nice to bad software Siri Cruise <chine.bleu@yahoo.com> - 2016-08-24 15:15 -0700
            Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 01:51 +0000
              Re: Being nice to bad software Siri Cruise <chine.bleu@yahoo.com> - 2016-08-24 21:53 -0700
                Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 05:02 +0000
        Re: Being nice to bad software Tim Streater <timstreater@greenbee.net> - 2016-08-24 23:39 +0100
          Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 11:40 -0500
            Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 09:45 -0700
            Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 17:04 +0000
              Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 17:14 +0000
                Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-08-28 15:30 -0400
                  Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-29 01:10 +0000
        Re: Being nice to bad software Calum <com.gmail@nospam.scottishwildcat> - 2016-08-25 12:25 +0100
        Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-08-25 22:39 +0000
          Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-28 23:36 -0500
        Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-09-01 00:36 +0000
      Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-24 19:38 +0000
        Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-24 16:33 -0500
          Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-24 14:45 -0700
            Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-24 16:50 -0500
              Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-24 16:33 -0700
              Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 02:15 +0000
            Re: Being nice to bad software Siri Cruise <chine.bleu@yahoo.com> - 2016-08-24 15:35 -0700
              Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 01:54 +0000
                Re: Being nice to bad software Jim Gibson <JimSGibson@gmail.com> - 2016-08-24 19:25 -0700
                  Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 02:28 +0000
                  Re: Being nice to bad software Siri Cruise <chine.bleu@yahoo.com> - 2016-08-24 21:53 -0700
                    Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 05:02 +0000
                      Re: Being nice to bad software Siri Cruise <chine.bleu@yahoo.com> - 2016-08-24 22:44 -0700
                        Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 06:00 +0000
                        Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-08-25 22:37 +0000
                Re: Being nice to bad software Siri Cruise <chine.bleu@yahoo.com> - 2016-08-24 21:52 -0700
                  Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-24 21:56 -0700
                    Re: Being nice to bad software Siri Cruise <chine.bleu@yahoo.com> - 2016-08-24 22:45 -0700
                  Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 05:00 +0000
              Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-08-25 22:35 +0000
                Re: Being nice to bad software Siri Cruise <chine.bleu@yahoo.com> - 2016-08-25 16:07 -0700
                  Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 23:55 +0000
                    Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-08-28 15:57 -0400
                      Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-29 01:12 +0000
                      Re: Being nice to bad software Siri Cruise <chine.bleu@yahoo.com> - 2016-08-28 19:19 -0700
                        Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-29 06:21 +0000
                  Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-08-26 04:06 +0000
          Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 01:49 +0000
      Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-24 16:25 -0500
        Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-24 14:43 -0700
          Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-24 16:51 -0500
            Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-24 16:39 -0700
              Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 01:47 +0000
                Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 11:46 -0500
                  Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 17:11 +0000
                    Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 13:28 -0500
                      Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 11:32 -0700
              Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 11:45 -0500
                Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 17:10 +0000
                  Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 13:29 -0500
                    Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 11:33 -0700
                      Re: Being nice to bad software JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-08-28 15:54 -0400
                        Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-28 12:59 -0700
                Re: Being nice to bad software Alan Baker <alangbaker@telus.net> - 2016-08-25 11:29 -0700
    Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-24 19:25 +0000
      Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-24 16:34 -0500
        Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 02:16 +0000
          Re: Being nice to bad software "Happy.Hobo" <Happy.Hobo@Spam.Invalid> - 2016-08-25 11:47 -0500
            Re: Being nice to bad software Jolly Roger <jollyroger@pobox.com> - 2016-08-25 17:11 +0000
    Re: Being nice to bad software Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-08-25 22:31 +0000

Page 1 of 8  [1] 2 3 4 5 6 7 8  Next page →


#93901 — Being nice to bad software

From"Happy.Hobo" <Happy.Hobo@Spam.Invalid>
Date2016-08-24 12:11 -0500
SubjectBeing nice to bad software
Message-ID<npkkgq$93n$1@gioia.aioe.org>
A few months back, we had an argument here.

I suggested to someone not using spaces in filenames because there is 
still software around that can't handle it.

The opposing viewpoint was that I should stop using poorly programmed 
software, because handling spaces in filenames is easy, and any software 
that doesn't is programmed by idiots.

Well, then, in OS X, bash must be programmed by idiots.

Scenario:
'find' a file.
triple-click the filename, not noticing that there are spaces in it.
Cmd-C to copy
type "open " and then paste

"The files /Users/wgroleau/Music/iTunes/iTunes, 
/Users/wgroleau/Media/Music/Unknown, /Users/wgroleau/Artist/GIAL, 
/Users/wgroleau/AL4302, and /Users/wgroleau/Mimicry do not exist."

So, I should stop using iTunes because it adds spaces, or bash because 
it can't handle them?  Or 'find' because it fails to escape them?

Yeah, I know, I should stop using my brain and eyes because they fail to 
notice spaces.  :-)

[toc] | [next] | [standalone]


#93902

FromAlan Baker <alangbaker@telus.net>
Date2016-08-24 10:26 -0700
Message-ID<npklbj$pmt$1@news.datemas.de>
In reply to#93901
On 2016-08-24 10:11 AM, Happy.Hobo wrote:
> A few months back, we had an argument here.
>
> I suggested to someone not using spaces in filenames because there is
> still software around that can't handle it.
>
> The opposing viewpoint was that I should stop using poorly programmed
> software, because handling spaces in filenames is easy, and any software
> that doesn't is programmed by idiots.
>
> Well, then, in OS X, bash must be programmed by idiots.
>
> Scenario:
> 'find' a file.
> triple-click the filename, not noticing that there are spaces in it.
> Cmd-C to copy
> type "open " and then paste
>
> "The files /Users/wgroleau/Music/iTunes/iTunes,
> /Users/wgroleau/Media/Music/Unknown, /Users/wgroleau/Artist/GIAL,
> /Users/wgroleau/AL4302, and /Users/wgroleau/Mimicry do not exist."
>
> So, I should stop using iTunes because it adds spaces, or bash because
> it can't handle them?  Or 'find' because it fails to escape them?
>
> Yeah, I know, I should stop using my brain and eyes because they fail to
> notice spaces.  :-)

This is such a HUGE non-issue.

You did a copy and paste of text that included spaces onto a bash 
command line. Did that automatically escape the spaces? No. Nor should 
it have. How is bash to guess that this particular string of text was a 
filename.

But you know what DOES work: copying the file, then pasting THAT into bash.

If you had simply clicked on the FILE (no need to get into the filename 
editing mode and triple-click), chosen copy, then pasted onto the bash 
command line, it would have been pasted like this:

Alans-MacBook-Pro-2:~ agbaker$ /Users/agbaker/Downloads/Gateway\ Quick\ 
Reference\ Users\ Guide.pdf

[toc] | [prev] | [next] | [standalone]


#93903

FromJF Mezei <jfmezei.spamnot@vaxination.ca>
Date2016-08-24 13:33 -0400
Message-ID<57bdda85$0$1250$c3e8da3$1cbc7475@news.astraweb.com>
In reply to#93902
On 2016-08-24 13:26, Alan Baker wrote:

> This is such a HUGE non-issue.

I disagree. In a context where some Apple apologists say that you never
need to worry about spaces in a filename, this is the perfect example
where spaces or other strange characters are not always handled properly
on OS-X. (for instance the addition of (1) (2) added by Firefox when you
donwload a file multiple times.

It means that when you paste such a file name, you need to use the
arreow keys to get cursor before such charavcters and type in the "\" to
escape the next "bad" character.


It is part of living with Unix software.  To bash, the space means end
of that argument and start of next argument. So it is integral to
argument parsing on the command line and can't be changed.

[toc] | [prev] | [next] | [standalone]


#93904

FromAlan Baker <alangbaker@telus.net>
Date2016-08-24 10:47 -0700
Message-ID<npkmji$rmu$1@news.datemas.de>
In reply to#93903
On 2016-08-24 10:33 AM, JF Mezei wrote:
> On 2016-08-24 13:26, Alan Baker wrote:
>
>> This is such a HUGE non-issue.
>
> I disagree. In a context where some Apple apologists say that you never
> need to worry about spaces in a filename, this is the perfect example
> where spaces or other strange characters are not always handled properly
> on OS-X. (for instance the addition of (1) (2) added by Firefox when you
> donwload a file multiple times.

No.

1. This is a "example" that only comes up at all for the handful of 
users who even know that there is such a thing as the command line.

2. There is a method that works perfectly for the actual use case.

>
> It means that when you paste such a file name, you need to use the
> arreow keys to get cursor before such charavcters and type in the "\" to
> escape the next "bad" character.

Except you don't have to paste the NAME, you simpleton. I just explained 
that. Right now, in my Downloads folder I have a file named this:

"RaceCapture (1).dmg"

I just clicked that file...

I didn't click it, type return, then select the text.

...copied, then pasted here. Because this is an application that deals 
in text, I got the text of the filename; no escapes.

Now, I'll do a paste in bash (without re-copying; just using what is 
already on the clipboard) and copy the resulting line here:

"Alans-MacBook-Pro-2:~ agbaker$ /Users/agbaker/Downloads/RaceCapture\ 
\(1\).dmg"

See that?

When you do a copy in Mac OS X, multiple representations of what you've 
copied can be included on the clipboard and each application can select 
which representation is most appropriate for the task it performs.

>
>
> It is part of living with Unix software.  To bash, the space means end
> of that argument and start of next argument. So it is integral to
> argument parsing on the command line and can't be changed.

I KNOW that, you twit.

And I've now showed you (twice!) how this is a problem of the user not 
understanding how copy and paste works.

[toc] | [prev] | [next] | [standalone]


#93910

From"Happy.Hobo" <Happy.Hobo@Spam.Invalid>
Date2016-08-24 16:29 -0500
Message-ID<npl3k2$129l$1@gioia.aioe.org>
In reply to#93904
On 08-24-2016 12:47, Alan Baker wrote:
> When you do a copy in Mac OS X, multiple representations of what you've
> copied can be included on the clipboard and each application can select
> which representation is most appropriate for the task it performs.
>
[snip]
>
> And I've now showed you (twice!) how this is a problem of the user not
> understanding how copy and paste works.

What you have shown is a problem of you forgetting what the user posted.

Copying a filename from the output of 'find' in Terminal is in no way 
the same thing as selecting a file in Finder and then picking "Copy" on 
a menu.

Piping stdout from one command to another compounds the difficulty of 
handling the spaces.

[toc] | [prev] | [next] | [standalone]


#93915

FromAlan Baker <alangbaker@telus.net>
Date2016-08-24 14:44 -0700
Message-ID<npl4f2$jdp$3@news.datemas.de>
In reply to#93910
On 2016-08-24 2:29 PM, Happy.Hobo wrote:
> On 08-24-2016 12:47, Alan Baker wrote:
>> When you do a copy in Mac OS X, multiple representations of what you've
>> copied can be included on the clipboard and each application can select
>> which representation is most appropriate for the task it performs.
>>
> [snip]
>>
>> And I've now showed you (twice!) how this is a problem of the user not
>> understanding how copy and paste works.
>
> What you have shown is a problem of you forgetting what the user posted.
>
> Copying a filename from the output of 'find' in Terminal is in no way
> the same thing as selecting a file in Finder and then picking "Copy" on
> a menu.

So you're using a bash command, and not expecting bash behaviour?

>
> Piping stdout from one command to another compounds the difficulty of
> handling the spaces.

[toc] | [prev] | [next] | [standalone]


#93918

From"Happy.Hobo" <Happy.Hobo@Spam.Invalid>
Date2016-08-24 16:49 -0500
Message-ID<npl4oq$13ju$1@gioia.aioe.org>
In reply to#93915
On 08-24-2016 16:44, Alan Baker wrote:
> So you're using a bash command, and not expecting bash behaviour?

You are apparently seeing something I never intended in my post.
Or your responding without reading.

[toc] | [prev] | [next] | [standalone]


#93926

FromAlan Baker <alangbaker@telus.net>
Date2016-08-24 16:33 -0700
Message-ID<nplare$uph$4@news.datemas.de>
In reply to#93918
On 2016-08-24 2:49 PM, Happy.Hobo wrote:
> On 08-24-2016 16:44, Alan Baker wrote:
>> So you're using a bash command, and not expecting bash behaviour?
>
> You are apparently seeing something I never intended in my post.
> Or your responding without reading.

You're copying and pasting text in bash, and expecting it to magically 
know where you want to escape the white space. There are lots of 
situations where that won't work as expected and lots of bash ways to 
handle it.

[toc] | [prev] | [next] | [standalone]


#93973

From"Happy.Hobo" <Happy.Hobo@Spam.Invalid>
Date2016-08-25 11:29 -0500
Message-ID<npn6co$7vf$2@gioia.aioe.org>
In reply to#93926
On 08-24-2016 18:33, Alan Baker wrote:
> On 2016-08-24 2:49 PM, Happy.Hobo wrote:
>> On 08-24-2016 16:44, Alan Baker wrote:
>>> So you're using a bash command, and not expecting bash behaviour?
>>
>> You are apparently seeing something I never intended in my post.
>> Or your responding without reading.
>
> You're copying and pasting text in bash, and expecting it to magically
> know where you want to escape the white space. There are lots of
> situations where that won't work as expected and lots of bash ways to
> handle it.

Still missing the point.

[toc] | [prev] | [next] | [standalone]


#93977

FromJolly Roger <jollyroger@pobox.com>
Date2016-08-25 16:41 +0000
Message-ID<e28lddFgs93U3@mid.individual.net>
In reply to#93973
On 2016-08-25, Happy.Hobo <Happy.Hobo@Spam.Invalid> wrote:
> On 08-24-2016 18:33, Alan Baker wrote:
>> On 2016-08-24 2:49 PM, Happy.Hobo wrote:
>>> On 08-24-2016 16:44, Alan Baker wrote:
>>>> So you're using a bash command, and not expecting bash behaviour?
>>>
>>> You are apparently seeing something I never intended in my post.
>>> Or your responding without reading.
>>
>> You're copying and pasting text in bash, and expecting it to magically
>> know where you want to escape the white space. There are lots of
>> situations where that won't work as expected and lots of bash ways to
>> handle it.
>
> Still missing the point.

The point is you shouldn't be copying output from one command-line tool
and pasting it as input to another command-line tool. You should be
instead sending the output directly to the next tool. You're doing it
wrong.

-- 
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

[toc] | [prev] | [next] | [standalone]


#93985

From"Happy.Hobo" <Happy.Hobo@Spam.Invalid>
Date2016-08-25 11:53 -0500
Message-ID<npn7pp$auo$1@gioia.aioe.org>
In reply to#93977
On 08-25-2016 11:41, Jolly Roger wrote:
> The point is you shouldn't be copying output from one command-line tool
> and pasting it as input to another command-line tool. You should be
> instead sending the output directly to the next tool. You're doing it
> wrong.

No, the point is (1) not automatically handling spaces doesn't make 
software "shitty" and (2) leaving spaces out of filenames makes a lot of 
things easier.

open "$(find .....)" works if the result is only one file.

find ... -exec open "{}" \; # will probably work.

and a host of others.

copy/paste is easier than any of them and only fails when someone other 
than me has decided that using an alternative to a pace is too much work.

[toc] | [prev] | [next] | [standalone]


#93986

Fromnospam <nospam@nospam.invalid>
Date2016-08-25 12:58 -0400
Message-ID<250820161258536371%nospam@nospam.invalid>
In reply to#93985
In article <npn7pp$auo$1@gioia.aioe.org>, Happy.Hobo
<Happy.Hobo@Spam.Invalid> wrote:

> > The point is you shouldn't be copying output from one command-line tool
> > and pasting it as input to another command-line tool. You should be
> > instead sending the output directly to the next tool. You're doing it
> > wrong.
> 
> No, the point is (1) not automatically handling spaces doesn't make 
> software "shitty" 

yes it does.

spaces in file names is a problem that was solved over *thirty* years
ago. 

anything that doesn't handle spaces in file names today is shitty.

> and (2) leaving spaces out of filenames makes a lot of 
> things easier.

not for the user, it doesn't.

not wanting spaces in file names is because of lazy fuck developers who
can't be bothered to provide the best user experience. fuck the user,
make them do unnatural things so that they don't have to code for it.

[toc] | [prev] | [next] | [standalone]


#93988

FromJolly Roger <jollyroger@pobox.com>
Date2016-08-25 17:09 +0000
Message-ID<e28n1qFgs93U8@mid.individual.net>
In reply to#93985
On 2016-08-25, Happy.Hobo <Happy.Hobo@Spam.Invalid> wrote:
> On 08-25-2016 11:41, Jolly Roger wrote:
>> The point is you shouldn't be copying output from one command-line tool
>> and pasting it as input to another command-line tool. You should be
>> instead sending the output directly to the next tool. You're doing it
>> wrong.
>
> No, the point is (1) not automatically handling spaces doesn't make
> software "shitty"

Nobody here claimed command-line shells were shitty. You misunderstood
what was said.

> and (2) leaving spaces out of filenames makes a lot of things easier.

For *most* people, who do not use command-line software, leaving spaces
out of file names hinders readability and doesn't make things any
easier. Thus, your blanket recommendation that everyone avoid spaces in
file names is bad advice for most people.

> open "$(find .....)" works if the result is only one file.
>
> find ... -exec open "{}" \; # will probably work.
>
> and a host of others.

All of which work just fine with filenames containing spaces - if you
know what you are doing.

> copy/paste is easier than any of them

Nope. Manually copying output from one command-line tool and pasting it
as input to another command-line tool is nowhere *near* as easy as
sending the output directly to the next tool.  And by copying and
pasting, you introduce other problems as well.

> and only fails when someone other than me has decided that using an
> alternative to a pace is too much work.

That's because you're doing it wrong.

-- 
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

[toc] | [prev] | [next] | [standalone]


#94009

From"Happy.Hobo" <Happy.Hobo@Spam.Invalid>
Date2016-08-25 13:37 -0500
Message-ID<npndt8$lug$1@gioia.aioe.org>
In reply to#93988
On 08-25-2016 12:09, Jolly Roger wrote:
> For *most* people, who do not use command-line software, leaving spaces
> out of file names hinders readability and doesn't make things any
> easier. Thus, your blanket recommendation that everyone avoid spaces in
> file names is bad advice for most people.

It wasn't a blanket recommendation.  It was a response to a complaint 
from someone who actually bumped into some of the alleged bad software.

File_name_without_a_space
and
File name without a space

have little difference in readability.

file-name-without-a-space, a little bit.

fileNameWithoutASpace however ....

Not that I have any clue whether you are a proponent of "camel case"

Are all the blogging tools that put hyphens in URIs bad software?

Are all the web browsers bad software?

[toc] | [prev] | [next] | [standalone]


#94012

FromJolly Roger <jollyroger@pobox.com>
Date2016-08-25 18:39 +0000
Message-ID<e28sb5Fin5aU2@mid.individual.net>
In reply to#94009
On 2016-08-25, Happy.Hobo <Happy.Hobo@Spam.Invalid> wrote:
> On 08-25-2016 12:09, Jolly Roger wrote:
>> For *most* people, who do not use command-line software, leaving spaces
>> out of file names hinders readability and doesn't make things any
>> easier. Thus, your blanket recommendation that everyone avoid spaces in
>> file names is bad advice for most people.
>
> It wasn't a blanket recommendation.  It was a response to a complaint 
> from someone who actually bumped into some of the alleged bad software.

So says you, who refuses to provide a link to this mysterious
discussion. Doubt it. For all I know you're lying to perpetuate your
silly delusional view that all spaces in filenames are evil.

-- 
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

[toc] | [prev] | [next] | [standalone]


#94018

From"Happy.Hobo" <Happy.Hobo@Spam.Invalid>
Date2016-08-25 16:05 -0500
Message-ID<npnmjb$154g$1@gioia.aioe.org>
In reply to#94012
On 08-25-2016 13:39, Jolly Roger wrote:
> So says you, who refuses to provide a link to this mysterious
> discussion. Doubt it. For all I know you're lying to perpetuate your
> silly delusional view that all spaces in filenames are evil.

For all I know, you're lying when you attribute to me
things I have never said.

[toc] | [prev] | [next] | [standalone]


#94021

FromJolly Roger <jollyroger@pobox.com>
Date2016-08-25 21:16 +0000
Message-ID<e295i5Fl031U2@mid.individual.net>
In reply to#94018
On 2016-08-25, Happy.Hobo <Happy.Hobo@Spam.Invalid> wrote:
> On 08-25-2016 13:39, Jolly Roger wrote:
>> So says you, who refuses to provide a link to this mysterious
>> discussion. Doubt it. For all I know you're lying to perpetuate your
>> silly delusional view that all spaces in filenames are evil.
>
> For all I know, you're lying when you attribute to me
> things I have never said.

*YAWN* You're just boring us now.

-- 
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

[toc] | [prev] | [next] | [standalone]


#94005

FromAlan Baker <alangbaker@telus.net>
Date2016-08-25 11:31 -0700
Message-ID<npndhp$j5f$4@news.datemas.de>
In reply to#93985
On 2016-08-25 9:53 AM, Happy.Hobo wrote:
> On 08-25-2016 11:41, Jolly Roger wrote:
>> The point is you shouldn't be copying output from one command-line tool
>> and pasting it as input to another command-line tool. You should be
>> instead sending the output directly to the next tool. You're doing it
>> wrong.
>
> No, the point is (1) not automatically handling spaces doesn't make
> software "shitty" and (2) leaving spaces out of filenames makes a lot of
> things easier.

Making the user limit his or her choices when it isn't necessary makes 
software shitty.

>
> open "$(find .....)" works if the result is only one file.
>
> find ... -exec open "{}" \; # will probably work.

Yup. WILL work.

>
> and a host of others.
>
> copy/paste is easier than any of them and only fails when someone other
> than me has decided that using an alternative to a pace is too much work.

It fails when the user fails to copy and paste correctly...

[toc] | [prev] | [next] | [standalone]


#94011

From"Happy.Hobo" <Happy.Hobo@Spam.Invalid>
Date2016-08-25 13:39 -0500
Message-ID<npne07$lug$2@gioia.aioe.org>
In reply to#94005
On 08-25-2016 13:31, Alan Baker wrote:
>> find ... -exec open "{}" \; # will probably work.
>
> Yup. WILL work.

You're probably making a guess based on not having used all the versions 
of Unix I've used.

[toc] | [prev] | [next] | [standalone]


#94013

FromJolly Roger <jollyroger@pobox.com>
Date2016-08-25 18:40 +0000
Message-ID<e28sddFin5aU3@mid.individual.net>
In reply to#94011
On 2016-08-25, Happy.Hobo <Happy.Hobo@Spam.Invalid> wrote:
> On 08-25-2016 13:31, Alan Baker wrote:
>>> find ... -exec open "{}" \; # will probably work.
>>
>> Yup. WILL work.
>
> You're probably making a guess

Since you haven't provided one single actual example showing it won't
work, you force everyone else to guess. Your attitude is solely to blame.

-- 
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

[toc] | [prev] | [next] | [standalone]


Page 1 of 8  [1] 2 3 4 5 6 7 8  Next page →

Back to top | Article view | comp.sys.mac.system


csiph-web