What the heck is this in my ~

Ryan Schmidt ryandesign at macports.org
Sat Jul 10 02:19:22 PDT 2010


On Jul 10, 2010, at 03:53, Ryan Schmidt wrote:

> On Jul 10, 2010, at 03:48, Scott Haneda wrote:
> 
>> I ran MacPorts the other day.  I'm pretty sure it is the culprit behind this:
>> http://dl.dropbox.com/u/340087/drops/07.10.10/mp-c0f17eba-014445.png
>> 
>> They are all empty files.
> 
> Cute! I've never seen this before so you'll have to show us what you ran to create those files; I can't guess how it happened.

Well, I could guess. The only way I know to make this happen is to take the output of "sudo port install someport", which might look like this:

$ sudo port install zlib > out
$ cat out
--->  Computing dependencies for zlib
--->  Fetching zlib
--->  Verifying checksum(s) for zlib
--->  Extracting zlib
--->  Applying patches to zlib
--->  Configuring zlib
--->  Building zlib
--->  Staging zlib into destroot
--->  Installing zlib @1.2.5_0
--->  Activating zlib @1.2.5_0
--->  Cleaning zlib

And run that output through bash:

$ bash out
out: line 1: ---: command not found
out: line 2: ---: command not found
out: line 3: syntax error near unexpected token `('
out: line 3: `--->  Verifying checksum(s) for zlib'

Except that "Verifying checksum(s)" line is a syntax error and so aborts everything. So I could exclude that line:

$ grep -v Verifying out
--->  Computing dependencies for zlib
--->  Fetching zlib
--->  Extracting zlib
--->  Applying patches to zlib
--->  Configuring zlib
--->  Building zlib
--->  Staging zlib into destroot
--->  Installing zlib @1.2.5_0
--->  Activating zlib @1.2.5_0
--->  Cleaning zlib
$ grep -v Verifying out | bash
bash: line 1: ---: command not found
bash: line 2: ---: command not found
bash: line 3: ---: command not found
bash: line 4: ---: command not found
bash: line 5: ---: command not found
bash: line 6: ---: command not found
bash: line 7: ---: command not found
bash: line 8: ---: command not found
bash: line 9: ---: command not found
bash: line 10: ---: command not found
$ ls -l
total 8
-rw-r--r--  1 rschmidt  wheel    0 Jul 10 04:16 Activating
-rw-r--r--  1 rschmidt  wheel    0 Jul 10 04:16 Applying
-rw-r--r--  1 rschmidt  wheel    0 Jul 10 04:16 Building
-rw-r--r--  1 rschmidt  wheel    0 Jul 10 04:16 Cleaning
-rw-r--r--  1 rschmidt  wheel    0 Jul 10 04:16 Computing
-rw-r--r--  1 rschmidt  wheel    0 Jul 10 04:16 Configuring
-rw-r--r--  1 rschmidt  wheel    0 Jul 10 04:16 Extracting
-rw-r--r--  1 rschmidt  wheel    0 Jul 10 04:16 Fetching
-rw-r--r--  1 rschmidt  wheel    0 Jul 10 04:16 Installing
-rw-r--r--  1 rschmidt  wheel    0 Jul 10 04:16 Staging
-rw-r--r--  1 rschmidt  wheel  306 Jul 10 04:15 out

I don't know how I would accomplish such a thing unintentionally, however.



More information about the macports-users mailing list