Questions tagged [gnu]

This tag is for programming questions related to software and tools provided by the GNU ("GNU's Not Unix") project.

The GNU Project is a free software, mass collaboration project, announced on September 27, 1983, by Richard Stallman at MIT. It initiated GNU operating system development in 1984. The founding goal of the project was, in the words of its initial announcement, to develop "a sufficient body of free software [...] to get along without any software that is not free."

To make this happen, the GNU Project began working on an operating system called GNU ("GNU" is a recursive acronym that stands for "GNU's Not Unix"). This goal of making a free software operating system was achieved in 1992 when the last gap in the GNU system, a kernel, was filled by the third-party Linux kernel being released as Free Software, under version 2 of the GNU GPL.

2807 questions
21
votes
5 answers

Bash arrays and negative subscripts, yes or no?

The GNU bash manual tells me An indexed array is created automatically if any variable is assigned to using the syntax name[subscript]=value The subscript is treated as an arithmetic expression that must evaluate to a number. If subscript…
bob.sacamento
  • 6,283
  • 10
  • 56
  • 115
21
votes
2 answers

Where can I download the source code to the GNU C++ Standard Library?

I downloaded the GNU Standard C Library (glibc) source code at http://ftp.gnu.org/gnu/glibc/. Where can I find a similar download for their C++ Library? I have googled around a bit and cannot seem to find it. The only reason I need it is I want to…
Matt
  • 21,026
  • 18
  • 63
  • 115
20
votes
1 answer

How to install boost on gnu/linux

There are so many tutorials and yet nothing clarified me how to install this library correctly. I want to install it in the default gnu/linux library directories. I tried: $ sudo ./bootstrap.sh $ ./b2 install Now where did it install? Did it…
Jacob Krieg
  • 2,834
  • 15
  • 68
  • 140
20
votes
2 answers

What exactly is the GNU tar ././@LongLink "trick"?

I read that a tar entry type of 'L' (76) is used by gnu tar and gnu-compliant tar utilities to indicate that the next entry in the archive has a "long" name. In this case the header block with the entry type of 'L' usually encodes the name…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
20
votes
3 answers

What is 'the regular expression library supplied by [my] system'?

The man page for GNU's less utility says the following about searching: /pattern Search forward in the file for the N-th line containing the pattern. N defaults to 1. The pattern is a regular expression, as recognized by the regular…
Michael Scheper
  • 6,514
  • 7
  • 63
  • 76
20
votes
6 answers

IDE / Emacs mode for Shell scripting in Bash/Sh, etc

I use Emacs for shell scripts. I know I read somewhere there's some mode to make it easier (code completion, autocomplete, bracket matching, syntax highligting, check syntax) to write Shell scripts on Emacs but haven't been able to find it. In…
Fernando Briano
  • 7,699
  • 13
  • 58
  • 75
19
votes
3 answers

Is there a symbol that represents the current address in GNU GAS assembly?

I am curious to know is there any special GAS syntax to achieve the same like in NASM example: SECTION .data msg: db "Hello World",10,0 ; the 0-terminated string. len: equ $-msg ; "$" means current…
orustammanapov
  • 1,792
  • 5
  • 25
  • 44
19
votes
1 answer

How to install and use GNU "ls" on macOS?

I was following this article to update my bash. I really want to update my version of bash so that I can use the --group-directories-first option for the ls command. So far I have accomplished the following from the linked article: I successfully…
im2wddrf
  • 551
  • 2
  • 5
  • 19
19
votes
2 answers

Why would it be illegal to inform about “abort”?

The GNU libc documentation of the abort function contains the following notice: Future Change Warning: Proposed Federal censorship regulations may prohibit us from giving you information about the possibility of calling this function. We would be…
Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214
19
votes
2 answers

Git commit -a opens GNU nano 2.2.6 How should I change it to open Vim instead?

I am trying to add a commit message to my changes using git commit -a OR just plain git commit this somehow opens GNU Nano 2.2.6 editor and I am not at all comfortable with it. So the question is : How can I modify my settings so that it…
Ketan Deshmukh
  • 678
  • 1
  • 5
  • 9
19
votes
3 answers

Understanding the Location Counter of GNU Linker Scripts

I'm working on a university project where I'm writing software for an Atmel SAM7S256 microcontroller from the ground up. This is more in depth than other MCUs I've worked with before, as a knowledge of linker scripts and assembly language is…
Adam Goodwin
  • 3,951
  • 5
  • 28
  • 33
19
votes
2 answers

how to use GNU Time with pipeline

I want to measure the running time of some SQL query in postgresql. Using BASH built-in time, I could do the following: $ time (echo "SELECT * FROM sometable" | psql) I like GNU time, which provides more formats. However I don't know how to do it…
stderr
  • 1,038
  • 1
  • 11
  • 18
18
votes
2 answers

1b and 1f in GNU assembly

I am analyzing a linux exception code. By the way I can't understand gnu assembly syntax. svc_preempt: mov r8, lr 1: bl preempt_schedule_irq @ irq en/disable is done inside ldr r0, [tsk, #TI_FLAGS] @ get new tasks…
user3247643
  • 283
  • 1
  • 4
  • 7
18
votes
1 answer

Use tar to compress file tar.gz with password

I use tar -czf test.tar.gz test/ to compress test forlder to test.tar.gz . Now, I want compress to test.tar.gz with password "mypass" How can I do?
abent
  • 309
  • 1
  • 2
  • 7
18
votes
4 answers

Are there any good tools for examining Makefiles?

Large complex make files can be daunting to read and examine. What tools are good for visualizing or otherwise examining a gnu make file?
Johnny
  • 1,144
  • 2
  • 11
  • 23