Questions tagged [expansion]
428 questions
5
votes
2 answers
OData v4.0 How to set MaxExpansionDepth?
Hi Everyone,
I need a setting in Get() method [EnableQuery(MaxExpansionDepth=3)] to limit expansion depth in OData query.
I tried to set this attribute in Get() method but it does not work.
Could you please give me a suggestion for this?
Follow…

Nhat Duy
- 198
- 1
- 2
- 11
5
votes
1 answer
Replacing 'source file' with its content, and expanding variables, in bash
In a script.sh,
source a.sh
source b.sh
CMD1
CMD2
CMD3
how can I replace the source *.sh with their content (without executing the commands)?
I would like to see what the bash interpreter executes after sourcing the files and expanding all…

Frédéric Haziza
- 51
- 3
5
votes
2 answers
Vim statusline does not expand color/highlight group from expression
I wrote a function which returns a string:
function! StatusBricks()
let l:stat = Brick(statusbricks#ReportLinecount('raw'), {
\ 'brick_color': 'LineNr',
\ 'delimiter_position': 'right',
\ 'delimiter_right': '❯'
\…

Saucier
- 4,200
- 1
- 25
- 46
5
votes
1 answer
Makefile Secondary Expansion
The gnu manual section 3.8 says:
"During the secondary expansion of explicit rules, $$@ and $$% evaluate, respectively, to the file name of the target and, when the target is an archive member, the target member name. The $$< variable evaluates to…

Lavya
- 1,475
- 2
- 17
- 21
5
votes
1 answer
Restoring expanded/collapsed tree node states
I was working with the tree state (expanded/selected nodes) saving and made an utility class that can save and restore node states. It works fine.
But still there is one problem with JTree itself - while user is working with some JTree instance…

Mikle Garin
- 10,083
- 37
- 59
5
votes
3 answers
Double quotes vs asterisk filename expansion in Bash
In the directories ~/temp/a/foo/ and ~/temp/b/foo foo/ I have some files named bar1, bar2, bar bar1, bar bar2, etc.
I am trying to write a line of Bash that copies all these files in a directory containing "foo" as last part of the name to the…

uvett
- 69
- 7
5
votes
4 answers
Bash - correct way to escape dollar in regex
What is the correct way to escape a dollar sign in a bash regex? I am trying to test whether a string begins with a dollar sign. Here is my code, in which I double escape the dollar within my double quotes expression:
echo -e…

user1198484
- 95
- 2
- 6
4
votes
4 answers
expand bash functions in find's exec parameter
How can I make find apply my shell's defined functions and aliases inside its exec parameter?
For example I have defined a function analogous to bzip2 but using 7z:
function 7zip() { for f in $@; do ls -alF "$f"; 7za a -t7z -m0=lzma
-mx=9…

Marcos
- 4,796
- 5
- 40
- 64
4
votes
2 answers
Datatable row expansion event
I am using Primefaces 3.0 with JSF 2.0. I have a datatable with expansion enabled. I wanted to call a bean method when the user clicks on rowToggler. Basically I wanted to load the expansion details only when the user clicks the expand button. I…

Renju
- 51
- 1
- 1
- 6
4
votes
2 answers
Bash glob expansion like echo $pathInVar*
I have a variable containing a path and want to expand a glob pattern based on that path. I want to understand why my attempts don't work and what is the preferred way of doing this in bash.
EX: I want to list all text files in my home directory or…

Stalpotaten
- 459
- 2
- 11
4
votes
2 answers
ExpansionTile lagging when expanding with a lot of children
Hello !
Everything is in the title.
I have an expansion tile to show members of a group. When lots of people are in a group (here 47), the expansion is not smooth at all and it simply blinks and opens.
Is there a way to make the animation smoother…

Paul
- 314
- 2
- 13
4
votes
2 answers
Is there a way to check, if an argument is passed in single quotes?
Is there a (best) way to check, if $uri was passed in single quotes?
#!/usr/local/bin/perl
use warnings;
use 5.012;
my $uri = shift;
# uri_check
# ...
Added this example, to make my problem more clear.
#!/usr/local/bin/perl
use warnings;
use…

sid_com
- 24,137
- 26
- 96
- 187
4
votes
2 answers
I want first ExpansionTile's item default is open. I want to When I click another item, current item is will close. How can I do it?
body: Container(color: Colors.white,
child: SingleChildScrollView(
child : Column(
children : [
Padding(padding: EdgeInsets.only(left : 23.0, top: 23.0, right: 23.0, bottom: 5.0),
…

Faruk AYDIN
- 205
- 1
- 4
- 14
4
votes
2 answers
tab expansion in perl
just encountered the code for doing tab expansion in perl, here is the code:
1 while $string =~ s/\t+/' ' x (length($&) * 8 - length($`) % 8)/e;
I tested it to be working, but I am too much a rookie to understand this, anyone care to explain a bit…

user685275
- 2,097
- 8
- 26
- 32
4
votes
4 answers
How to escape extended pathname expansion patterns in quoted expressions?
In addition to the basic *, ? and [...] patterns, the Bash shell provides extended pattern matching operators like !(pattern-list) ("match all except one of the given patterns"). The extglob shell option needs to be set to use them. An example:
~$…

akaihola
- 26,309
- 7
- 59
- 69