![]() It will, for better or worse, do exactly what you tell it to do, so make sure you really know what you're asking. ![]() One can get around this particular problem by using the -0 option of xargs: echo /Library/Application\ Support | tr '\n' '\0' | /usr/bin/xargs -0 lsīut remember folks, Unix gives you enough rope to shoot yourself in the foot. Don't put a wood chipper in your living room, in place of a wastebasket, either.Īnd for the record, xargs does choke on spaces: $ echo "/Library/Application Support" | xargs lsls: /Library/Application: No such file or directoryls: Support: No such file or directory$ But please, I beseech you, don't ever pipe a list of files that you haven't personally carefully inspected, into something like sudo xargs rm. If you really know what you're doing, reading through the output of lsbom (along with the associated preinstall / postinstall / preupgrade / postupgrade files) can be useful to figure out how a program gets installed, and thus how to go about removing it. Sudo xargs rm is the Mac OS X equivalent of a loaded firearm with the safety off, and this hint, despite the "I haven't tried it with names with spaces" disclaimer, borders on irresponsibility. Get Suspicious Package free from the developer (for macOS and Mac OS X) Once Suspicious Package is installed, you can give it a try by dragging any PKG installer file into the application, or selecting a package installer in the Finder and hitting Command Spacebar to activate Quick Look on the package in question.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |