zsh-users
 help / color / mirror / code / Atom feed
* Problem with gcc -###
@ 2012-02-28 10:37 İsmail Dönmez
  2012-02-28 10:52 ` Nikolai Weibull
  2012-02-28 10:53 ` Jérémie Roquet
  0 siblings, 2 replies; 4+ messages in thread
From: İsmail Dönmez @ 2012-02-28 10:37 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]

Hi;

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.

Regards,
ismail

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with gcc -###
  2012-02-28 10:37 Problem with gcc -### İsmail Dönmez
@ 2012-02-28 10:52 ` Nikolai Weibull
  2012-02-28 10:53 ` Jérémie Roquet
  1 sibling, 0 replies; 4+ messages in thread
From: Nikolai Weibull @ 2012-02-28 10:52 UTC (permalink / raw)
  To: İsmail Dönmez; +Cc: Zsh Users

On Tue, Feb 28, 2012 at 11:37, İsmail Dönmez <ismail@namtrac.org> wrote:

> [~]> gcc -###
> zsh: bad pattern: -###
>
> Just a minor annoyance but I wanted to share in case its a bug.

gcc -\#\#\#


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with gcc -###
  2012-02-28 10:37 Problem with gcc -### İsmail Dönmez
  2012-02-28 10:52 ` Nikolai Weibull
@ 2012-02-28 10:53 ` Jérémie Roquet
  2012-02-28 11:47   ` İsmail Dönmez
  1 sibling, 1 reply; 4+ messages in thread
From: Jérémie Roquet @ 2012-02-28 10:53 UTC (permalink / raw)
  To: İsmail Dönmez; +Cc: Zsh Users

Hi,

2012/2/28 İsmail Dönmez <ismail@namtrac.org>:
> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with gcc -###
  2012-02-28 10:53 ` Jérémie Roquet
@ 2012-02-28 11:47   ` İsmail Dönmez
  0 siblings, 0 replies; 4+ messages in thread
From: İsmail Dönmez @ 2012-02-28 11:47 UTC (permalink / raw)
  To: Jérémie Roquet; +Cc: Zsh Users

Hi;

On Tue, Feb 28, 2012 at 11:53 AM, Jérémie Roquet <arkanosis@gmail.com> wrote:
> Hi,
>
> 2012/2/28 İsmail Dönmez <ismail@namtrac.org>:
>> 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 -###

That explains it, thanks a lot!


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-28 11:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-28 10:37 Problem with gcc -### İsmail Dönmez
2012-02-28 10:52 ` Nikolai Weibull
2012-02-28 10:53 ` Jérémie Roquet
2012-02-28 11:47   ` İsmail Dönmez

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).