Skip to content

Instantly share code, notes, and snippets.

@demonbane
Last active March 10, 2018 21:19
Show Gist options
  • Select an option

  • Save demonbane/cb352cbc8e01f16ced94bd9531f775b9 to your computer and use it in GitHub Desktop.

Select an option

Save demonbane/cb352cbc8e01f16ced94bd9531f775b9 to your computer and use it in GitHub Desktop.

Revisions

  1. demonbane revised this gist Mar 10, 2018. 2 changed files with 6 additions and 2 deletions.
    4 changes: 3 additions & 1 deletion 4.3.48
    Original file line number Diff line number Diff line change
    @@ -15,4 +15,6 @@ License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    ~# echo $BASH_VERSION
    4.3.48(1)-release
    4.3.48(1)-release
    ~# declare -p BASH_VERSINFO
    declare -ar BASH_VERSINFO='([0]="4" [1]="3" [2]="48" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")'
    4 changes: 3 additions & 1 deletion 4.4.12
    Original file line number Diff line number Diff line change
    @@ -15,4 +15,6 @@ License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    ~# echo $BASH_VERSION
    4.4.12(1)-release
    4.4.12(1)-release
    ~# declare -p BASH_VERSINFO
    declare -ar BASH_VERSINFO=([0]="4" [1]="4" [2]="12" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")
  2. demonbane revised this gist Mar 10, 2018. 2 changed files with 6 additions and 2 deletions.
    4 changes: 3 additions & 1 deletion 4.3.48
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,6 @@ Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    There is NO WARRANTY, to the extent permitted by law.
    ~# echo $BASH_VERSION
    4.3.48(1)-release
    4 changes: 3 additions & 1 deletion 4.4.12
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,6 @@ Copyright (C) 2016 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    There is NO WARRANTY, to the extent permitted by law.
    ~# echo $BASH_VERSION
    4.4.12(1)-release
  3. demonbane revised this gist Mar 10, 2018. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  4. demonbane created this gist Mar 10, 2018.
    16 changes: 16 additions & 0 deletions 4.3.48.bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    ~# foo='one
    > two
    > three'
    ~# hd <<< $foo
    00000000 6f 6e 65 20 74 77 6f 20 74 68 72 65 65 0a |one two three.|
    0000000e
    ~# hd <<< "$foo"
    00000000 6f 6e 65 0a 74 77 6f 0a 74 68 72 65 65 0a |one.two.three.|
    0000000e
    ~# bash --version
    GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    16 changes: 16 additions & 0 deletions 4.4.12.bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    ~# foo='one
    > two
    > three'
    ~# hd <<< $foo
    00000000 6f 6e 65 0a 74 77 6f 0a 74 68 72 65 65 0a |one.two.three.|
    0000000e
    ~# hd <<< "$foo"
    00000000 6f 6e 65 0a 74 77 6f 0a 74 68 72 65 65 0a |one.two.three.|
    0000000e
    ~# bash --version
    GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)
    Copyright (C) 2016 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.