Re: bash --pretty-print and pattern

2025-02-21 Thread Timotei Campian
great hint! many thanks On Thu, 20 Feb 2025 at 14:26, Koichi Murase wrote: > 2025年2月20日(木) 20:51 Timotei Campian : > > echo !(file.f*) > > > > *bash --pretty-print test.sh* > > If this script file "test.sh" will be used as an independent > executabl

bash --pretty-print and pattern

2025-02-20 Thread Timotei Campian
*OS*=debian12 *BASH_VERSION*="5.2.15(1)-release" the script test.sh has the following content: echo !(file.f*) Now calling bash pretty-print result in this error: *bash --pretty-print test.sh* file1: line 2: syntax error near unexpected token `(' file1: line 2: `echo !(file.f*)'

printf - strange behaviour in debug mode (BASH_VERSION="5.2.21(1)-release")

2024-02-08 Thread Timotei Campian
Dear DEV TEAM, I want to report a strange *printf* behaviour which appears in debug mode + no arguments. OS: Debian GNU/Linux 12 (bookworm) BASH_VERSION="5.2.15(1)-release" OS: MACOS BASH_VERSION="5.2.21(1)-release" The culprit function is *printargs() { printf "%s|" "$@"; echo; }* calling it