Re: gcc12 fault?

2023-06-02 Thread Joshua Root
On 2/6/2023 16:47, Ken Cunningham wrote: You have probably already noted that which and type are both built in to the default zsh on Ventura and as far as I can tell from my testing here give identical results in every case. Both correctly predict the binary that will be executed in every

Re: gcc12 fault?

2023-06-02 Thread Ken Cunningham
> On Jun 1, 2023, at 6:18 PM, Joshua Root wrote: > > Ken Cunningham wrote: > >> what you see is difficult to explain, unless the PATH changed between the >> two tests. >> >> if >> >> 'which gcc' gives /opt/local/bin/gcc >> >> then >> >> gcc --version >> >> should give exactly the same

Re: gcc12 fault?

2023-06-01 Thread Joshua Root
Ken Cunningham wrote: what you see is difficult to explain, unless the PATH changed between the two tests. if 'which gcc' gives /opt/local/bin/gcc then gcc --version should give exactly the same as /opt/local/bin/gcc --version Not necessarily. Shells cache command locations, so if

Re: gcc12 fault?

2023-06-01 Thread Ken Cunningham
what you see is difficult to explain, unless the PATH changed between the two tests. if 'which gcc' gives /opt/local/bin/gcc then gcc --version should give exactly the same as /opt/local/bin/gcc --version Now you know that /opt/local/bin/gcc will not actually exist, unless you have

Re: gcc12 fault?

2023-06-01 Thread Richard L. Hamilton
You're right, it's zsh. And "which" seems to be builtin with zsh. > On Jun 1, 2023, at 11:46, contextnerror ​ wrote: > > I thought zsh was the new default shell? > >> On Jun 1, 2023, at 8:38 AM, Richard L. Hamilton wrote: >> >> Try "type" rather than "which"; "type" is a builtin command in

Re: gcc12 fault?

2023-06-01 Thread contextnerror ​
I thought zsh was the new default shell? > On Jun 1, 2023, at 8:38 AM, Richard L. Hamilton wrote: > > Try "type" rather than "which"; "type" is a builtin command in bash, dash, > sh, and ksh. "which" is typically not a builtin. Usually they should say the > same thing, but if they're not,

Re: gcc12 fault?

2023-06-01 Thread Richard L. Hamilton
Try "type" rather than "which"; "type" is a builtin command in bash, dash, sh, and ksh. "which" is typically not a builtin. Usually they should say the same thing, but if they're not, something is odd, perhaps with your .bashrc or .profile or whatever. Pretty sure dash is the default shell in

gcc12 fault?

2023-06-01 Thread David Nicholls via macports-users
I upgraded OSX to the latest Ventura, installed the latest Xcode, and Xcode tools, accepted the license, then reinstalled Macports as per the instructions. Versions of gcc older than gcc12 failed (as advised in the resintall), so I installed gcc12, ran port select to activate gcc12 and