Questions tagged [bash]

Most common system shell in Unix/Linux environments. Integrates very well with other softwares having a command line interface. Widely used in CI scripts and buildscripts.

The shell is developed since 1988 by the Free Software Foundation.

In the decades, it has got most features of a high-level programming language, including exception handling, high-level data structures inculding dictionary and arrays, while it still preserved its close connection to the low-level OS functionality.

Its main purpose in the CI/DevOps world is to integrate the command-line interfaces of different softwares to each other.

44 questions
4
votes
1 answer

Exit a Makefile target called by parent without throwing an error

Let's say that I have 2 targets: test: # ... @$(MAKE) dosomething @echo test # ... dosomething: # ... @if [ -z "$(SOMETHING)" ]; then exit 0; fi @echo dosomething # ... I would like echo test to execute even if…
Destroy666
  • 141
  • 1
  • 3
1
vote
2 answers

od output is confusing

This isn't a deploy related question, but I believe it belongs here. I've found out about the od tool yesterday, and began to fiddle with it. The question is about utf-8 encoding. See the examples: ~ $ echo -n á | od -x 0000000 a1c3 0000002 ~ $ echo…
Niloct
  • 121
  • 5
0
votes
1 answer

How do I add my IP address to the start of my terminal using the bashrc file?

I want to customise my terminal on an Amazon linux device. I have colours using $(tput setaf 33);, user name with /u but the IP address not there. #blue=$(tput setaf 33); PS1="\[${blue}]\u$(tput sgr0)" PS1="${blue}[\u@\w $(tput…
doug
  • 523
  • 2
  • 6
  • 14