Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: x86_64-pc-linux-gnu-gcc
Compilation CFLAGS: -march=skylake -mtune=skylake -mprefer-vector-width=128
-O2 -pipe -frecord-gcc-switches -ggdb -fvar-tracking-assignments
-fno-omit-frame-pointer -f
On Sun, Apr 14, 2024 at 11:16:27AM +0200, Emanuel Attila Czirai wrote:
> $ [ -n ">" -a -n "something" ] || echo hmm
> bash: [: syntax error: `-n' unexpected
> hmm
Don't do this. You're in the land of unspecified behavior here.
Use multiple test or [ commands instead, or use bash's [[ command.
On Sat, Apr 13, 2024 at 4:10 PM Chet Ramey wrote:
>
> The original intent was to allow the shell to drive a long-running process
> that ran more-or-less in parallel with it. Look at examples/scripts/bcalc
> for an example of that kind of use.
$ ./bcalc
equation: -12
./bcalc: line 94: history: -1: