t;
ls: cannot access '~/Desktop': No such file or directory
but:
$ ls -d ~/Desktop
/home/marco/Desktop
On my previous version 5.1.4(1)-release the tilde expanded just fine.
Marco Ippolito
maroloc...@gmail.com
> Examples are more for the texinfo documentation; the man page is big
> enough already.
What goes in the man page Vs in the texinfo documentation, please?
On 21/10/2019 11:11, Andreas Schwab wrote:
On Okt 21 2019, Marco Ippolito wrote:
In the GNU Bash 5.0 man page from 7 December 2018 the -e test is
documented as such:
-e file
True if file exists.
When "file" is a symlink name to a non-existing target, the -e
In the GNU Bash 5.0 man page from 7 December 2018 the -e test is
documented as such:
-e file
True if file exists.
When "file" is a symlink name to a non-existing target, the -e test
fails, and this may be surprising from just reading the documentation.
By contrast, POSIX
Bash has elegant and powerful constructs like `mapfile',
yet it is missing something as easy as an array "pop".
Extract the last value of an array at the same time as
removing it from the array.
Is this the best one can do?
$ a=(1 2 3); v=${a[-1]}; unset 'a[-1]'; printf '%s\n' "$v" "${a[@]}"
Th
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu'
-DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/local
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu'
-DCONF_VENDOR='unknown'
-DLOCALEDIR='/nix/store/mm631h0
ls='ls -l'
ls /
}
foo
: bash -x test.sh
+ foo
+ shopt -s expand_aliases
+ alias 'ls=ls -l'
+ ls / < should be "ls -l /"
Thanks,
Marco Fonseca