Re: export loses error

2021-02-15 Thread Chet Ramey
On 2/14/21 4:03 AM, Stephane Chazelas wrote: 2021-02-09 10:23:51 -0500, Chet Ramey: [...] It's the assignment statement that's the oddball here; it's the only place where the exit status from a command substitution has any effect. This is a POSIX (maybe ksh) invention to provide assignment state

Re: export loses error

2021-02-14 Thread Stephane Chazelas
2021-02-09 10:23:51 -0500, Chet Ramey: [...] > It's the assignment statement that's the oddball here; it's the only place > where the exit status from a command substitution has any effect. This is a > POSIX (maybe ksh) invention to provide assignment statements with a useful > exit status. [...]

Re: export loses error

2021-02-09 Thread Chet Ramey
On 2/8/21 5:29 PM, gregrwm wrote: $ export vim=$HOME/.GVim-v8.2.2451.glibc2.15-x86_64.AppImage $ $ vimV=$($vim --version)||echo handle error here #without export, error is captured fuse: failed to exec fusermount: No such file or directory open dir error: No such file or dir

Re: export loses error

2021-02-08 Thread Léa Gris
Le 09/02/2021 à 01:05, Lawrence Velázquez écrivait : On Feb 8, 2021, at 5:29 PM, gregrwm wrote: $ export vim=$HOME/.GVim-v8.2.2451.glibc2.15-x86_64.AppImage $ $ vimV=$($vim --version)||echo handle error here #without export, error is captured fuse: failed to exec fusermount:

Re: export loses error

2021-02-08 Thread Lawrence Velázquez
> On Feb 8, 2021, at 5:29 PM, gregrwm wrote: > > $ export vim=$HOME/.GVim-v8.2.2451.glibc2.15-x86_64.AppImage > $ > $ vimV=$($vim --version)||echo handle error here #without > export, error is captured > fuse: failed to exec fusermount: No such file or directory > open dir error:

export loses error

2021-02-08 Thread gregrwm
$ export vim=$HOME/.GVim-v8.2.2451.glibc2.15-x86_64.AppImage $ $ vimV=$($vim --version)||echo handle error here #without export, error is captured fuse: failed to exec fusermount: No such file or directory open dir error: No such file or directory handle error here $ $ export