Questions tagged [expansion]

428 questions
17
votes
7 answers

Expansion files in the new Google Play developer console

I am trying to upload my app to Google Play using the developer console. As of a week or so ago they have made it so that each app has a unique key string. You have to use the new developer console to get the key for your app. The problem is that…
user1911173
  • 171
  • 1
  • 1
  • 4
15
votes
3 answers

How to force bash/zsh to evaluate parameter as multiple arguments when applied to a command

I am trying to run a program like this: $CMD $ARGS where $ARGS is a set of arguments with spaces. However, zsh appears to be handing off the contents of $ARGS as a single argument to the executable. Here is a specific example: $export…
Setjmp
  • 27,279
  • 27
  • 74
  • 92
14
votes
2 answers

Is bash doing "$@" expansion incorrectly inside ${var+...}?

I currently get 2 opinions by 3 shells: $ bash -c 'set bar; set foo${1+ "$@"}; echo "$# $*"' 1 foobar $ ash -c 'set bar; set foo${1+ "$@"}; echo "$# $*"' 2 foo bar $ dash -c 'set bar; set foo${1+ "$@"}; echo "$# $*"' 2 foo bar Or did I overlook…
14
votes
2 answers

home directory expansion (~) within an argument

When I enter the following (BASH): rdesktop -r disk:bacon=~/bacon host It does not expand to rdesktop -r disk:bacon=/home/me/bacon host It seems the "disk:" part is the problem as can be seen in: $ echo bacon=~/bacon…
Yoo
  • 17,526
  • 6
  • 41
  • 47
13
votes
3 answers

Haskell: Equation Expander 1+(1+(1+(1+(…))))=∞

Does there exist a equation expander for Haskell? Something like foldr.com: 1+(1+(1+(1+(…))))=∞ I am new to Haskell I am having trouble understanding why certain equations are more preferable than others. I think it would help if I could see the…
user295190
12
votes
2 answers

How to avoid glob expansion when running a Java app in Eclipse

I am running into a peculiar behavior of the Eclipse run configuration, and it appears to be a Windows-only problem. Suppose I have a Java app that prints out the command line arguments, like the following: public class WildCard { public static…
sjlee
  • 7,726
  • 2
  • 29
  • 37
12
votes
2 answers

Qt: Expand ~ to home-directory

Does Qt have any platform-independent functionality to accept paths like "~/myfile"? I know about wordexp, but it would be nice with a platform-independent wrapper. Edit: Thank you all for the responses. "~/myfile" was just an example. What I am…
Rasmus Faber
  • 48,631
  • 24
  • 141
  • 189
10
votes
2 answers

Is there any difference between $@ and "$@"?

Is there any difference between $@ and "$@"? I understand there may be differences for non special characters, but what about the @ sign with input arguments?
Carmellose
  • 4,815
  • 10
  • 38
  • 56
10
votes
6 answers

Bash globbing - autoexpand for a few specific cases?

I understand that the wildcard * (by itself) will expand in such a way that it means "all non-hidden files in the current folder" with hidden files being those prefixed by a period. There are two use cases that I would think are useful, but I don't…
Fragsworth
  • 33,919
  • 27
  • 84
  • 97
10
votes
4 answers

Problems testing APK expansion library

I've integrated the APK Expansion file download library from Google into my project, and it works more or less OK (except a few minor gotchas, which have been reported by others on SO already). However, I have a hard time testing it. When I was…
Code Painters
  • 7,175
  • 2
  • 31
  • 47
9
votes
2 answers

Why do I get this error using {1..9} in zsh?

I run the following code zgrep -c compinit /usr/share/man/man{1..9}/zsh* I get zsh: no matches found: /usr/share/man/man2/zsh* This is strange, since the following works echo Masi{1..9}/masi This suggests me that the problem may be a bug in Zsh.…
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
9
votes
7 answers

Sequences expansion and variable in bash

I am having a problem with builtin sequences (ie: not using seq) in Bash when the seq number is a variable. For example, this works and print me 1 2 3: for i in {1..3};do echo $i done but this : a=3 for i in {1..$a};do echo $i done fail and…
Chmouel Boudjnah
  • 2,541
  • 3
  • 24
  • 28
9
votes
3 answers

apk expansion file not downloading from playstore

I am working with the sample apk expansion file downloaded from the SDk. My main expansion file is about 5 MB of size and its format is "main.1.mypackage_name" . I uploaded my app in play store as a draft application along with the expansion…
hacker
  • 8,919
  • 12
  • 62
  • 108
9
votes
1 answer

android play movie inside expansion file

My app is trying to deliver lots of contents to users, so the app's size is much greater than 50mb. There is no way we could reduce or remove some of the content, so we decided to go with the expansion approach. I am trying to follow this tutorial:…
vodkhang
  • 18,639
  • 11
  • 76
  • 110
9
votes
3 answers

Preprocessor macro expansion to another preprocessor directive

Initially I thought I needed this, but I eventually avoided it. However, my curiosity (and appetite for knowledge, hum) make me ask: Can a preprocessor macro, for instance in #include "MyClass.h" INSTANTIATE_FOO_TEMPLATE_CLASS(MyClass) expand to…
moala
  • 5,094
  • 9
  • 45
  • 66
1
2
3
28 29