bug-bash
[Top][All Lists]
Advanced

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

Re: Enable compgen even when programmable completions are not available?


From: Fabien Orjollet
Subject: Re: Enable compgen even when programmable completions are not available?
Date: Wed, 28 Jun 2023 14:06:43 +0200

On 28/06/2023 12:42, Fabien Orjollet wrote:


But by adding set -p to the subshell:

Well, works as well by adding :
so I'm not sure at all about set -p

time for i in {1..100}; do
   #declare-P "$(set -p; declare -p)"

   declare-P "$(:; declare -p)"
done

1>4648 2>5001 3>5001 4>5001 5>5000 6>5001 7>4998 8>5000 9>5000 10>5002
11>5002 12>5003 13>5002 14>5003 15>5002 16>5001 17>5003 18>5002 19>5002
20>5003 21>5002 22>5003 23>5001 24>5002 25>5003 26>5003 27>5003 28>5001
29>5001 30>5001 31>5002 32>5003 33>5003 34>5002 35>5002 36>5002 37>5002
38>5002 39>5002 40>5002 41>5003 42>5002 43>5003 44>5002 45>5003 46>5002
47>5003 48>5003 49>5002 50>5002 51>5003 52>5002 53>5002 54>5003 55>5003
56>5003 57>5001 58>5003 59>5001 60>5001 61>5003 62>5003 63>4999 64>5001
65>5003 66>5003 67>5001 68>5002 69>5003 70>5003 71>5003 72>5003 73>5003
74>5003 75>5003 76>5002 77>5003 78>5001 79>5003 80>5003 81>5003 82>5003
83>5002 84>5003 85>5002 86>5003 87>5003 88>5003 89>5002 90>5002 91>5003
92>5003 93>5001 94>5003 95>5003 96>5003 97>5002 98>5002 99>5003 100>5004
real    0m0,848s
user    0m0,620s
sys     0m0,258s



reply via email to

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