Skip to main content

Questions tagged [posix]

POSIX is an acronym for Portable Operating System Interface, a family of standards specified by the IEEE for maintaining compatibility between operating systems.

8 votes
1 answer
98 views

According to chapter 9. Regular Expressions, subchapter 9.3.6 BREs Matching Multiple Characters, number "3.": "... the expression "\(a\(b\)*\)*\2" fails to match 'abab' ...&...
becke-ch's user avatar
  • 223
2 votes
1 answer
59 views

Why is it that a Process Group Leader can't change its PGID? I know it sounds dumb for a leader to just abandon its own group, but what is the actual architectural reason behind this? What would ...
Bhushitha Hashan's user avatar
3 votes
1 answer
169 views

I have the following code: set -e log=$( false ; true ) echo "success(?)" It exits with error code 1 when run via sh (as expected), but succeeds with bash. I figured (and read) that bash ...
daten's user avatar
  • 63
0 votes
1 answer
179 views

For example, from OpenSSH: echo "usage: ${PROGNAME} [OPTION]..." echo echo "This script creates an OpenSSH user configuration." echo echo "Options:" echo " --...
fedorafan's user avatar
  • 143
5 votes
2 answers
649 views

On a Debian system, man 3 errno tells that the code names (ENOENT) are portable, but the integers in errno are not. If an error is reported, the name instead of the integer number is therefore the ...
Rainer Glaschick's user avatar
3 votes
1 answer
174 views

According to the Shell Command Language Specification: "2.7.4 Here-Document": Any <backslash> characters in the input shall behave as the <backslash> inside double-quotes (see 2....
becke-ch's user avatar
  • 223
0 votes
2 answers
108 views

Why isn't $ chmod + .profile an error? Shouldn't the user have added some extra character to make the command do something?
Dan Jacobson's user avatar
10 votes
2 answers
1k views

Context: I want to process a file created by another program, but the name of its output file is not completely under my control, so to find its output I use find to find all files in the output ...
gpvos's user avatar
  • 214
0 votes
2 answers
114 views

I'm writing a shell script that's aimed to be as portable and POSIX-compatible as possible, so usage of bash-only commands or high-level input libraries is undesirable. I'm looking for a way to read a ...
carbon-starlight's user avatar
5 votes
4 answers
476 views

I have the following file below, $ cat voltages.txt "-0.20" "-0.10" "-0.00" "-0.10" "-0.20" "-0.30" "-0.40" "-0.50" &...
hisacro's user avatar
  • 71
1 vote
1 answer
77 views

How can I prevent command substitution in arguments from silently swallowing errors? #!/bin/sh set -e echo "Evaluating $(false) should abort." echo "This line should not be executed.&...
V02460's user avatar
  • 113
5 votes
3 answers
1k views

I am using this code to parse the first argument passed to my script. It error handles and it works just the way I want it: if [ -z "$action" ]; then printf "[${c_RED}ERROR${c_RESET}...
EmberNeurosis's user avatar
0 votes
1 answer
114 views

I am new to socket programming & I have realized that most posix functions from libc require that you pass a buffer & a length. While I can understand this helps the functions to understand ...
Weezy's user avatar
  • 691
6 votes
3 answers
492 views

Can someone explain the issue I've described below, and perhaps suggest a resolution? I'm trying to process a set of filenames using find. My platform is macOS (Ventura 13.7.7), and the shell is zsh ...
Seamus's user avatar
  • 4,068
0 votes
0 answers
31 views

I have a remote system where I can create only files and directories. No symlinks, ACLs, hard links, devices, nothing. I think, it would be really useful to be able to use it even as a linux root ...
peterh's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
48