help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shopt extglob


From: Martin d'Anjou
Subject: shopt extglob
Date: Wed, 12 Oct 2011 10:43:53 -0400

Hi,

I am not sure whether this is a make or shell problem.

SHELL=/bin/bash
all:
        $$'shopt -s extglob; ls !(foo)'

make
$'shopt -s extglob\nls !(foo)\n'
/bin/sh: shopt -s extglob
ls !(foo)
: command not found
make: *** [all] Error 127


But when I type it in the shell, it just works:
bash -c $'shopt -s extglob\n ls !(foo)\n'

Thanks,
Martin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]