Tag Info

New answers tagged


For the sake of comprehensibility and visibility I abuse an answer for explaining the quoting part. May the SE karma forgive me... This is (depending on the content of f) a special case, the problem is not easy to see: > f=foo > set -x > echo "reading entry: "$f"" + echo 'reading entry: foo' reading entry: foo The shells debug modus shows just ...


Since it's not in the cygwin ports, it's not. You should consider building it from source. EDIT Googling for gnu globals cygwin I found build instructions: http://sophie.zarb.org/distrib/PLD/ac/ppc/rpms/global/files/11 This source also lists the necessary dependencies.


As nobody could show me an app which fits my needs, I've written my own.


No, there is not such a script. You basically have 2 choices: Just use the subset of options POSIX specifies. Note that it can even be challenging to get the POSIX conforming shell binary in a portable way. For example, /bin/sh doesn't have to be conforming. The portable way to get a POSIX conforming shell is: PATH=$(getconf PATH) command -v sh Just ...


$ eval echo -e "n\ $d/$prf.00{2..$last}.tar\\\n" n someprefix.002.tar n someprefix.003.tar n someprefix.004.tar How did that whitespace get in there? The answer in a nutshell: this is analogous to the output you'd get if you echoed a line using filename expansion on a bunch of files whose names end with newline. As described in brace expansion: ...

Top 50 recent answers are included