Tag Info

Hot answers tagged

23

whohas package (link) may help you. Example % whohas pidgin|grep "pidgin " MacPorts pidgin 2.10.6 https://trac.macports.org/browser/trunk/dports/net/pidgin/Portfile Slackware pidgin 2.7.11-i486-3sl slacky.eu ...


22

The autoconf manual has a section on portable shell programming. Although that's not specifically targeting POSIX, it's probably the most complete collection of what to do and not to do when attempting to write portable shell code.


14

The closest thing I've come across to a tool like this is pkgs.org: pkgs.org - Linux Software Catalog and Packages Search The pkgs.org is created to provide you with the simplest method of searching and downloading the newest versions of the best Linux software - without the usual excessive popups or spyware. Also use it to find alternatives to ...


8

You can't. The format for /etc/hosts is quite simple, and doesn't support including extra files. There are a couple approaches you could use instead: Set up a (possibly local-only) DNS server. Some of these give a lot of flexibility, and you can definitely spread your host files over multiple files, or even machines. If you're trying to include the same ...


8

All of the guides I've found were incredibly informal, not properly summarising its syntax or telling the most common errors you can make. The best resource, and one that does address common errors, is Greg's Wiki Another very good resource for pointers on syntax and good practice is the Bash Hackers Wiki


6

Distrowatch has a table show what versions of software specific distros include. If you open your preferred distos in different tabs you can see what version of GIMP they have. Here's Mint, Ubuntu, Debian, and Fedora, there's a radio button to choose between seeing only the major packages and all packages. Select all packages if your package isn't on the ...


4

In addition to dash and posh, there's bournesh (or bsh), the Heirloom Bourne Shell, that can be used to detect Bashisms. The Heirloom Project also includes "The Heirloom Toolchest", a collection of more than 100 standard Unix utilities (which could serve as a starting point for comparing command line options).


3

Depending on your Version of MacOS X, you can create your own content for the Dictionary app. There's a lot of pre-generated material out there, and even a few additional tools to convert stuff from other sources. Dict.org converter for pre-Leopard mac-dictionary-kit for Leopard onwards. See blog entry for details - there's more blogs around, google will ...


2

Similar to this answer, try executing your script in posh. Also, don't forget to set the POSIXLY_CORRECT environment variable to true, this causes many programs (not only the shell) to adhere more strictly with the POSIX standards.


2

I don't know of any online resources that are going to be as helpful as this book: Understanding the Linux Kernel. Chapter 12 covers the Linux VFS layer, and Chapter 18 covers ext2/ext3 specifically. The book probably about due for a fourth edition, since it's circa 2.6.10, but the basics are still the same. There's a lot going on in filesystems these days, ...


1

To a little extend, you can try checkbashisms in Debian/Ubuntu's devscripts package. It is not perfect, but it has the benefit of being an existing starting point. For example, it doesn't see the classical glitches with sed/find concerning the GNU vs BSD/other differences. By default, it is Debian+dash oriented, the -p flag can be useful for in your case.


1

To be honest, I find myself in the same situation that you are quite often. Even though I'm not a beginner. But knowing which tool does what is, is something that will haunt you forever, especially, since new tools are coming in quite fast, are Distro dependent, and the UI changes sometimes from version to version (as with tar, that changed the meaning of ...



Only top voted, non community-wiki answers of a minimum length are eligible