Re: Set command lists the shell variables and values, then lists other text (Script?)

2025-01-26 Thread Lawrence Velázquez
On Sun, Jan 26, 2025, at 5:40 PM, Pete Edwards wrote: > The set command executed should list the shell variables and values, > which > it does, but it is followed by other text, which looks like script text > that has no purpose in the output expectred. The `set' built-in is documented to print b

Re: Set command lists the shell variables and values, then lists other text (Script?)

2025-01-26 Thread Greg Wooledge
On Sun, Jan 26, 2025 at 17:40:35 -0500, Pete Edwards wrote: > The set command executed should list the shell variables and values, which > it does, but it is followed by other text, which looks like script text > that has no purpose in the output expectred. The "set" command shows variables *and*

Set command lists the shell variables and values, then lists other text (Script?)

2025-01-26 Thread Pete Edwards
I am seeing this issue on a new install of Windows 11 with Msys2 and VSCode installed The set command executed should list the shell variables and values, which it does, but it is followed by other text, which looks like script text that has no purpose in the output expectred. Please advise, Sample

Re: printf width format specifier doesn't work when assigned

2025-01-26 Thread Greg Wooledge
On Sun, Jan 26, 2025 at 11:16:27 +0100, Phi Debian wrote: > $ printf -v foo "%(*)T" {1..4} ; echo "'$foo'" > '' I've added this one to .

Re: printf width format specifier doesn't work when assigned

2025-01-26 Thread Phi Debian
On Sat, Jan 25, 2025 at 4:06 PM Andreas Kähäri wrote: > > Sorry, I pressed send too quickly. I was going to suggest an alternative > to using a command substitution and tr: > > printf -v foo '%*s' 80 ' ' > echo "${foo// /*}" > > -- > Andreas (Kusalananda) Kähäri > Uppsala, Sweden