You're right, it's zsh. And "which" seems to be builtin with zsh.

> On Jun 1, 2023, at 11:46, contextnerror ​ <contextner...@outlook.com> wrote:
> 
> I thought zsh was the new default shell?
> 
>> On Jun 1, 2023, at 8:38 AM, Richard L. Hamilton <rlha...@smart.net> 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, something is odd, perhaps with your .bashrc 
>> or .profile or whatever.
>> 
>> Pretty sure dash is the default shell in Ventura (actually in Monterey 
>> too?), apparently Apple wasn't thrilled with the bash license.
>> 
>> Nothing else seems obvious, and since I'm having some network issues, I'm 
>> not going to start my Ventura VM to look at it right now.
>> 
>> 
>>> On Jun 1, 2023, at 11:17, David Nicholls via macports-users 
>>> <macports-users@lists.macports.org> wrote:
>>> 
>>> 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 
>>> gfortran12. All ok so far.
>>> 
>>> 'which gcc' gives /opt/local/bin/gcc
>>> 
>>> But:
>>> 
>>> <xxxx>:~ username$ gcc --version
>>> Apple clang version 14.0.3 (clang-1403.0.22.14.1)
>>> Target: x86_64-apple-darwin22.5.0
>>> Thread model: posix
>>> InstalledDir: 
>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>>> 
>>> and
>>> 
>>> <xxxx>:~ username$ /opt/local/bin/gcc --version
>>> gcc (MacPorts gcc12 12.3.0_0+stdlib_flag) 12.3.0
>>> Copyright (C) 2022 Free Software Foundation, Inc.
>>> This is free software; see the source for copying conditions.  There is NO
>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>> 
>>> Why does the command 'gcc --version' not give that same result as 
>>> '/opt/local/bin/gcc --version' ?
>>> 
>>> 'gfortan --version' works as expected
>>> 
>>> DN
>>> 
>> 
> 

Reply via email to