Make special interpreter variable "noglob" behave as documented:

globbing is off by default.  An incompatible change, but previous
behaviour can be restored by "unset noglob" in .spiceinit.
This commit is contained in:
Giles Atkinson 2023-09-23 08:50:47 +01:00 committed by Holger Vogt
parent 41c61604c5
commit a70e708114
3 changed files with 5 additions and 2 deletions

View File

@ -86,6 +86,9 @@ static void tilde_expand_word(wordlist *wl_node);
* name of a "HOME" directory are supported. ?*[] are not */
wordlist *cp_doglob(wordlist *wlist)
{
if (cp_noglob)
return wlist;
/* Expand {a,b,c} */
{
wordlist *wl = wlist;

View File

@ -5,7 +5,7 @@ v1 1 0 dc = 0
.control
set foo = ""
echo "TEST:" ">{$foo}< should be ><"
echo "TEST:" ">{$foo}< should be >{}<"
set foo = ( 1 2 3 )
set bar = 2

View File

@ -1,7 +1,7 @@
Circuit: test for regression of already fixed bugs
TEST: >< should be ><
TEST: >{}< should be >{}<
TEST: >1< should be >1<
TEST: >2< should be >2<
TEST: 1 2 3 baz bar