Linked Questions

6 votes
1 answer
198 views

Possible Duplicate: Resources for portable shell programming I want to write a shell script that is intended for further distribution. So I'd like to write it in a way that is as portable as ...
Andrew Stacey's user avatar
112 votes
23 answers
79k views

This may have more to do with detecting operating systems, but I specifically need the init system currently in use on the system. Fedora 15 and Ubuntu now use systemd, Ubuntu used to use Upstart (...
beatgammit's user avatar
  • 7,873
113 votes
4 answers
51k views

Considering that POSIX is the closest thing to a common standard among all unices, I'm interested in knowing if there's a shell that supports it exclusively. While most modern shells provide support ...
rahmu's user avatar
  • 20.6k
37 votes
1 answer
3k views

Does there exist a tool similar to Perl::Critic that will inspect your shell scripts and point out flaws, portability issues, uses of non-standard programs without fallbacks, depreciated program uses, ...
amphetamachine's user avatar
15 votes
4 answers
18k views

I would like to inspect group permissions of a file from a bash script. Specifically, I need to check whether a file has the group writeable bit on. That's it. Simple as that. However: I also need ...
mislav's user avatar
  • 401
5 votes
3 answers
3k views

Is it possible to emulate (is that the right word?) previous versions of Bash? I am using 4.3.11, and I am curious to know if my scripts are compatible with some earlier versions, but I don't want ...
philosophie's user avatar
10 votes
1 answer
2k views

I've been frustrated before with differences in output from the which command across different platforms (Linux vs. Solaris vx. OS X), with different shells possibly playing into the matter as well. ...
iconoclast's user avatar
  • 9,462
3 votes
4 answers
3k views

I've developed a few Bash scripts on a LFS system which should now be made to work on a minimal installation of Sun Solaris 10. Is there a guide somewhere with at least some general tips for ...
l0b0's user avatar
  • 53.6k
0 votes
2 answers
2k views

I need to make 5 directories (name1, name2, name3, name4, name5) by command line using mkdir and seq. If I use: mkdir name{`seq -s , 1 5`} It results in one directory: name{1,2,3,4,5} What command ...
deebian's user avatar
  • 11
1 vote
1 answer
536 views

I would like to develop portable /bin/sh scripts, but my environment links /bin/sh to /bin/bash. Even when running in --posix mode, /bin/bash still handles some non-portable features like [[ and $(). ...
meustrus's user avatar
  • 327