Skip to main content
3 of 4
'ash' typo
ipodtouch0218
  • 3.1k
  • 6
  • 16

In a nutshell we have:

Clear cut scripting questions

These questions are on topic by all criteria listed on the What topics can I ask about here? help page.

Examples:

  • How do I clock execution time of commands?
  • How do I let the user input a username?
  • How do I compare two signed integers in bash?

Clear cut interactive use

These questions are off topic since they are not about programming per see.

One could argue that they are questions about "software tools commonly used by programmers" but it's still borderline since a shell is a very general tool. (We wouldn't want questions about Chromium for example, even though that is a tool commonly used by programmers.)

Examples:

  • How do I increase the bash history?
  • What's the shortcut to cut/paste in bash?
  • How do I edit multiline commands in bash?

Could be either

These could be questions about usage of command line tools often used to automate tasks, how to tweak the output in the shell, etc.

Examples:

  • How do I print the current working directory?
  • How do I redirect stderr to stdout?
  • How do I disable file name expansion (globbing)?

These questions are "unique to software development" the same way as "How to resolve merge conflicts in Git" or "How do I show whitespace characters in sublime?", and they are all on topic for Stack Overflow. (Personally I'd actually argue that those two last examples are more off topic than general shell questions, yet they are very well received by the community.)

Command line tools such as find, awk and xargs can be used used by an interactive shell user, and git and sublime can be used for collaborating on and editing a paper. Doesn't matter much.

The fact that general shell questions are on topic also for UNIX.SE (see their What topics can I ask about here? page) is basically irrelevant. Even if it's "more on topic" on another site, it's still up to OP to decide which site to post on. As long as it is on topic for SO, it's fine to post it on SO.

aioobe
  • 420.4k
  • 19
  • 21