Closed QwertyZW closed 6 years ago
Not sure what you're referring to here, HEAD doesn't do that:
$ git clone git@github.com:kvz/bash3boilerplate.git
Cloning into 'bash3boilerplate'...
X11 forwarding request failed on channel 0
remote: Counting objects: 1567, done.
remote: Total 1567 (delta 0), reused 0 (delta 0), pack-reused 1567
Receiving objects: 100% (1567/1567), 1.68 MiB | 5.85 MiB/s, done.
Resolving deltas: 100% (894/894), done.
10:43:18 [gdevenyi@monster:~] $ cd bash3boilerplate/
10:43:19 [gdevenyi@monster:~/bash3boilerplate] master ± ./example.sh
10:43:20 [gdevenyi@monster:~/bash3boilerplate] master ±
What version of bash are you using? bash --version
It looks like you had a debug mode enabled on your terminal somehow.
@gdevenyi they set PS4 and turned on -x: qwertyzw% PS4='Line ${LINENO}: ' bash -x ./example.sh
so they are intentionally showing us the output.
@QwertyZW what is the problem? You expect the help text to print when invoking ./example.sh but it doesn't?
Thanks for the fast response guys.
@zbeekman yep, this is what I was looking for
No sure if this behaviour is intended. I'm using bash4. This is what I had to do to work around it: https://github.com/QwertyZW/bash3boilerplate/commit/0cdc704a3d55661aa6ad17f9bd4271b0cdf4bedd