Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: echo ${pwd::="$( pwd/Next)"} failed



In the last episode (Feb 02), Marc Chantreux said:
> Dan Nelson a écrit :
> >Failed with what error message?  A similar command works for me:
> >
> > dan% echo ${pwd::=$(apg -n 1)}
> > KiUpVuc6
> > dan% echo $pwd
> > KiUpVuc6
>
> Yes .. but if you repeat the command, apg will not be executed and
> $pwd will be the same.

Works fine here, on 4.3.2 (also tested on 3.0.5):

 dan% echo ${pwd::=$(apg -n 1)}
 siWyif2kni
 dan% echo ${pwd::=$(apg -n 1)}
 Oas3opghor

-- 
	Dan Nelson
	dnelson@xxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author