* Command expansion inside for loop
@ 2020-07-07 21:17 Mike Brown
2020-07-07 21:45 ` Mike Brown
0 siblings, 1 reply; 5+ messages in thread
From: Mike Brown @ 2020-07-07 21:17 UTC (permalink / raw)
To: cygwin mail list
Several years ago I was provided with info on how to get command expansion
to work inside for loops. I run under Zsh. It was done for the install that
I have under XP. I've since installed cygwin under Win7-64 and want to get
the expansion working again, but do not remember what was done to get it
to work.
And yes, expansion works outside of the for loop on the command line.
Thanks for pointers.
MB
--
e-mail: vidiot@vidiot.com | vidiot@vidiot.net /~\ The ASCII
6082066843@email.uscc.net (140 char limit) \ / Ribbon Campaign
Visit - URL: http://vidiot.com/ X Against
http://vidiot.net/ / \ HTML Email
"VCR was in the closet. Still works. Can't get the clock to stop
blinking, though." Angela - Animal Kingdom - 7/16/19
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Command expansion inside for loop
2020-07-07 21:17 Command expansion inside for loop Mike Brown
@ 2020-07-07 21:45 ` Mike Brown
2020-07-07 22:06 ` Mike Brown
0 siblings, 1 reply; 5+ messages in thread
From: Mike Brown @ 2020-07-07 21:45 UTC (permalink / raw)
To: cygwin mail list
On Tue, Jul 07, 2020 at 04:17:43PM -0500, Mike Brown wrote:
> Several years ago I was provided with info on how to get command expansion
> to work inside for loops. I run under Zsh. It was done for the install that
> I have under XP. I've since installed cygwin under Win7-64 and want to get
> the expansion working again, but do not remember what was done to get it
> to work.
Brain fart. Never an issue with XP, as the Zsh version is 2.4.6. The Win7
version is 5.3.
I thought I had it working. It might be because I think I reinstalled
cygwin as I redid the OS. In any event, it is no longer working.
MB
--
e-mail: vidiot@vidiot.com | vidiot@vidiot.net /~\ The ASCII
6082066843@email.uscc.net (140 char limit) \ / Ribbon Campaign
Visit - URL: http://vidiot.com/ X Against
http://vidiot.net/ / \ HTML Email
"VCR was in the closet. Still works. Can't get the clock to stop
blinking, though." Angela - Animal Kingdom - 7/16/19
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Command expansion inside for loop
2020-07-07 21:45 ` Mike Brown
@ 2020-07-07 22:06 ` Mike Brown
2020-07-08 11:47 ` Mark Hansen
0 siblings, 1 reply; 5+ messages in thread
From: Mike Brown @ 2020-07-07 22:06 UTC (permalink / raw)
To: cygwin mail list
On Tue, Jul 07, 2020 at 04:45:28PM -0500, Mike Brown wrote:
> On Tue, Jul 07, 2020 at 04:17:43PM -0500, Mike Brown wrote:
> > Several years ago I was provided with info on how to get command expansion
> > to work inside for loops. I run under Zsh. It was done for the install that
> > I have under XP. I've since installed cygwin under Win7-64 and want to get
> > the expansion working again, but do not remember what was done to get it
> > to work.
>
> Brain fart. Never an issue with XP, as the Zsh version is 2.4.6. The Win7
> version is 5.3.
>
> I thought I had it working. It might be because I think I reinstalled
> cygwin as I redid the OS. In any event, it is no longer working.
Nevermind. I found it. It was when I went to Fedora 25 and a 5.x version
of Zsh that the issue arose. I dug thru some e-mail and it was via the
Zsh mail list that I was provided with the answer. It was Jun 14, 2017,
that I updated the .zshrc file. Brain got fuzzy over the three years.
I added the changes to the cygwin version of my .zshrc file and it worked.
MB
--
e-mail: vidiot@vidiot.com | vidiot@vidiot.net /~\ The ASCII
6082066843@email.uscc.net (140 char limit) \ / Ribbon Campaign
Visit - URL: http://vidiot.com/ X Against
http://vidiot.net/ / \ HTML Email
"VCR was in the closet. Still works. Can't get the clock to stop
blinking, though." Angela - Animal Kingdom - 7/16/19
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Command expansion inside for loop
2020-07-07 22:06 ` Mike Brown
@ 2020-07-08 11:47 ` Mark Hansen
2020-07-08 17:42 ` Kaz Kylheku
0 siblings, 1 reply; 5+ messages in thread
From: Mark Hansen @ 2020-07-08 11:47 UTC (permalink / raw)
To: cygwin
On 7/7/2020 3:06 PM, Mike Brown wrote:
> On Tue, Jul 07, 2020 at 04:45:28PM -0500, Mike Brown wrote:
>> On Tue, Jul 07, 2020 at 04:17:43PM -0500, Mike Brown wrote:
>> > Several years ago I was provided with info on how to get command expansion
>> > to work inside for loops. I run under Zsh. It was done for the install that
>> > I have under XP. I've since installed cygwin under Win7-64 and want to get
>> > the expansion working again, but do not remember what was done to get it
>> > to work.
>>
>> Brain fart. Never an issue with XP, as the Zsh version is 2.4.6. The Win7
>> version is 5.3.
>>
>> I thought I had it working. It might be because I think I reinstalled
>> cygwin as I redid the OS. In any event, it is no longer working.
>
> Nevermind. I found it. It was when I went to Fedora 25 and a 5.x version
> of Zsh that the issue arose. I dug thru some e-mail and it was via the
> Zsh mail list that I was provided with the answer. It was Jun 14, 2017,
> that I updated the .zshrc file. Brain got fuzzy over the three years.
>
> I added the changes to the cygwin version of my .zshrc file and it worked.
>
> MB
>
You got us reading three posts, so we're fully invested in your issue, and then
you don't share the answer? That's just cruel :)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Command expansion inside for loop
2020-07-08 11:47 ` Mark Hansen
@ 2020-07-08 17:42 ` Kaz Kylheku
0 siblings, 0 replies; 5+ messages in thread
From: Kaz Kylheku @ 2020-07-08 17:42 UTC (permalink / raw)
To: Mark Hansen; +Cc: cygwin
On 2020-07-08 04:47, Mark Hansen wrote:
> You got us reading three posts, so we're fully invested in your issue,
> and then
> you don't share the answer? That's just cruel :)
I'm invested in the amusement of the whole procession, but all the while
I'm thinking that command substitution inside a for loop is basic
shell syntax from POSIX:
$ for x in $(echo a b c) ; do echo $x ; done
a
b
c
so it's either a PEBKAC or some obscure version-specific Zsh problem
nobody cares
about any more.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-07-08 17:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 21:17 Command expansion inside for loop Mike Brown
2020-07-07 21:45 ` Mike Brown
2020-07-07 22:06 ` Mike Brown
2020-07-08 11:47 ` Mark Hansen
2020-07-08 17:42 ` Kaz Kylheku
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).