Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

posix

Is there a POSIX way of setting zeroth argument of a target application?

August 10, 2022 by Magenaut

In bash you can use exec -a and in zsh you can alternatively also set ARGV0 to execute a program with a certain zeroth argument but is there also a POSIX way of doing so?

Categories Q&A, Unix & Linux Tags exec, posix, shell, shell-script Leave a comment

Are ASCII escape sequences and control characters pairings part of a standard?

August 9, 2022 by Magenaut

There are common pairings of escape sequences to ASCII control characters, such as Ctrl-C and Ctrl-Z to ETX and SUB, respectively.

Categories Q&A, Unix & Linux Tags ascii, posix, terminal Leave a comment

sed on OSX insert at a certain line

August 9, 2022 by Magenaut

So I’ve been using ‘sed’ on linux for a while, but have had a bit of difficulty trying to use it on OSX since ‘POSIX sed’ and ‘GNU sed’ have so many little differences. Currently I’m struggling with how to insert a line of text after a certain line number. (in this case, line 4)

Categories Q&A, Unix & Linux Tags gnu, osx, posix, sed Leave a comment

Absolute / canonical / relative paths

August 9, 2022 by Magenaut

What is the difference between absolute / canonical / relative paths?

Categories Q&A, Unix & Linux Tags filesystems, posix Leave a comment

Is awk’s nextfile specified in POSIX?

August 9, 2022 by Magenaut

GNU awk manual on nextfile reads:

Categories Q&A, Unix & Linux Tags awk, posix Leave a comment

Why does a brace command group need spaces after the opening brace in POSIX Shell Grammar?

August 8, 2022 by Magenaut

TL;DR: Why does POSIX brace group need spaces after { reserved word but subshell doesn’t after reserved word (?

Categories Q&A, Unix & Linux Tags posix, shell, subshell, syntax Leave a comment

Unix systems without /dev/stdin, /dev/stdout, and /dev/stderr?

August 8, 2022 by Magenaut

The system may provide non-standard extensions. These are features not required by POSIX.1-2008 and may include, but are not limited to: […] Additional character special files with special properties (for example, /dev/stdin, /dev/stdout, and /dev/stderr)

Categories Q&A, Unix & Linux Tags posix, stderr, stdin, stdout Leave a comment

Is it possible to “protect” an IFS character from field splitting?

August 8, 2022 by Magenaut

In a POSIX sh, or in the Bourne shell (as in Solaris 10’s /bin/sh), is it possible to have something like:

Categories Q&A, Unix & Linux Tags bourne-shell, posix, shell Leave a comment

Assignments are like commands with an exit status except when there’s command substitution?

August 8, 2022 by Magenaut

See the following examples and their outputs in POSIX shells:

Categories Q&A, Unix & Linux Tags assignment, command-substitution, exit-status, posix, shell Leave a comment

Why does ‘find -exec cmd {} +’ need to end in ‘{} +’?

August 8, 2022 by Magenaut

Preface: I understand the difference between -exec {} ; & -exec {} +. I also don’t have a problem as such, I am just curious about the semantics of find.

Categories Q&A, Unix & Linux Tags find, history, posix Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress