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

Re: Problem with gcc -###



Hi,

2012/2/28 İsmail Dönmez <ismail@xxxxxxxxxxx>:
> So turns out that gcc has an interesting option,
>
> in bash:
>
>> gcc -###
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.6/lto-wrapper
> Target: x86_64-suse-linux
> Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
> --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
> --enable-languages=c,c++,objc,fortran,obj-c++,java,ada
> --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.6
> --enable-ssp --disable-libssp --disable-plugin --with-bugurl=
> http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj
> --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib
> --enable-__cxa_atexit --enable-libstdcxx-allocator=new
> --disable-libstdcxx-pch --enable-version-specific-runtime-libs
> --enable-linker-build-id --program-suffix=-4.6 --enable-linux-futex
> --without-system-libunwind --with-arch-32=i586 --with-tune=generic
> --build=x86_64-suse-linux
> Thread model: posix
> gcc version 4.6.2 20111212 [gcc-4_6-branch revision 182222] (SUSE Linux)
>
> in zsh:
>
> [~]> echo $ZSH_VERSION
> 4.3.15
>
> [~]> gcc -###
> zsh: bad pattern: -###
>
> Just a minor annoyance but I wanted to share in case its a bug.

That's because of extended globing.

You should unsetopt extendedglob or use:

noglob gcc -###

Best regards,

-- 
Jérémie



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