News for hackers. Stuff that matters.
Re:Show HN: Swiss Army Knife for Mac OS X by Lio on Thursday July 14, 2016 @07:31PM (#12097982)
Not sure I like the install method. I'm nervous of anything that asks me to pipe curl to shell.
Re:Show HN: Swiss Army Knife for Mac OS X by arnarbi on Thursday July 14, 2016 @07:35PM (#12098009)
Are you less nervous running a binary installer?
Re:Show HN: Swiss Army Knife for Mac OS X by beachstartup on Friday July 15, 2016 @12:12AM (#12098895)
i'm not. all of it makes me nervous. even package managers with supposedly cryptographically secure verification make me nervous.

but, you gotta do what you gotta do to actually do stuff.

i sure as hell ain't going back to the days of compiling everything from source.

Re:Show HN: Swiss Army Knife for Mac OS X by seanwilson on Friday July 15, 2016 @07:19AM (#12100168)
> i'm not. all of it makes me nervous. even package managers with supposedly cryptographically secure verification make me nervous.

Android and Chrome for example are really ahead of this in my opinion. Apps are sandboxed and you know uninstall clears up traces of them. Obviously it's not perfect but it's miles ahead of installation scripts and binary installers which can do anything they want with your system and might be hard to get rid of.

Re:Show HN: Swiss Army Knife for Mac OS X by yoz-y on Friday July 15, 2016 @07:57AM (#12100338)
That is what Mac App Store is for. However, all of these sandboxed environments come with their own sets of problems and make making especially these kind of tools quite difficult if not impossible.
Re:Show HN: Swiss Army Knife for Mac OS X by pjmlp on Friday July 15, 2016 @09:50AM (#12100890)
> Apps are sandboxed and you know uninstall clears up traces of them.

Not in all versions of Android, if they write stuff on the SD card.

Re:Show HN: Swiss Army Knife for Mac OS X by seanwilson on Friday July 15, 2016 @06:17PM (#12104184)
They might be able to write some files that sit around but not code that runs on startup and spies on you for example.
Re:Show HN: Swiss Army Knife for Mac OS X by slrz on Friday July 15, 2016 @09:52PM (#12104866)
So how would you go about packaging this m-cli tool into a sandboxed app?
Re:Show HN: Swiss Army Knife for Mac OS X by ghshephard on Friday July 15, 2016 @12:53AM (#12099001)
Okay - I'm curious. What is wrong with:

  ./configure
  make
  make install
I do that a lot, and 90+% of the time, it's that simple.
Re:Show HN: Swiss Army Knife for Mac OS X by beachstartup on Friday July 15, 2016 @01:13AM (#12099059)
uh yeah, it's the other 10% that's the problem.

not to mention the tracking of installed files and library dependencies that slowly develop into an accumulated spiderweb shitstorm of runtime conflicts.

have you tried maintaining multiple versions of a shared object libraries by hand? do you remember the 'make install' wrappers that never worked right? pepperidge farm remembers.

Re:Show HN: Swiss Army Knife for Mac OS X by auvi on Thursday July 14, 2016 @07:37PM (#12098022)
the best way to get rid off the discomfort is to first check the shell script: curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.... | pbcopy

Then you can paste it in a text editor and if it is not too long you can verify the script.

And as this one is on github you can take a look directly.

Re:Show HN: Swiss Army Knife for Mac OS X by theseoafs on Thursday July 14, 2016 @08:34PM (#12098249)
Just pipe the script to a file so you can read it without having to copy-paste. :)

curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install..... > install.sh

Re:Show HN: Swiss Army Knife for Mac OS X by jlgaddis on Thursday July 14, 2016 @10:57PM (#12098701)
Or use curl's built-in options:

  curl -O ...
or

  curl -o install.sh ...
Re:Show HN: Swiss Army Knife for Mac OS X by Alphasite_ on Friday July 15, 2016 @01:32PM (#12102569)
Or pbpaste | sh
Re:Show HN: Swiss Army Knife for Mac OS X by curun1r on Thursday July 14, 2016 @10:54PM (#12098688)
Also not to like about the install method: The install.sh stores INSTALL_DIR in a variable but does not allow that variable to be overridden by the environment. So you're forced to install into /usr/local despite then being asked to add /usr/local/m-cli to your path. It would be better to allow /usr/local to be overridden so that installation doesn't require sudo. It's just as easy to add ~/.m-cli to your path.
Re:Show HN: Swiss Army Knife for Mac OS X by JadeNB on Tuesday July 19, 2016 @02:51PM (#12123886)
> The install.sh stores INSTALL_DIR in a variable but does not allow that variable to be overridden by the environment.

Really? The documentation explicitly says that it does:

    INSTALL_DIR=$HOME/.m-cli sh <(curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh)
Re:Show HN: Swiss Army Knife for Mac OS X by javajosh on Thursday July 14, 2016 @07:38PM (#12098029)
You can always pull and build - but of course that's risky too, roughly in proportion to the size of the working copy.
Re:Show HN: Swiss Army Knife for Mac OS X by barefootcoder on Friday July 15, 2016 @01:52AM (#12099173)
The thing is, in this case you can easily inspect the shell script that they're running with that curl command.