summary refs log tree commit diff
path: root/home/.local/bin/git-password
diff options
context:2009-08-31
| | | | | | | | | | | | Commit 55c46b7286f5d9f2d8291158203e2b61d2494420 ([BUILTIN] Honor tab as IFS whitespace when splitting fields in readcmd) introduced a bug where sometimes garbage would follow the last field preceding the end-of-line. This was caused by an off-by-one error in the string length calculation. This patch fixes the bug. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
* 2009-08-June McEnroe <june@causal.agency>2021-02-09 21:44:03 -0500
commit191b066c17ac242f42da7fec3241de36ce974229 (patch)
tree5882bcccb009258d0145b7d66965b463b707d05d /home/.local/bin/git-password
parentShow minutes left instead of battery percentage (diff)
downloadsrc-191b066c17ac242f42da7fec3241de36ce974229.tar.gz
src-191b066c17ac242f42da7fec3241de36ce974229.zip
Install sct
My eyes are so much happier with sct 4500 oh my god.
Diffstat (limited to 'home/.local/bin/git-password')
0 files changed, 0 insertions, 0 deletions
when called by minusc. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> * [SHELL] Add preliminary LINENO supportRocky Bernstein2009-08-11 | | | | | | | | | | | | | | | | | | | | | | | Looks like in contrast to what the dash.1 manual page says, expansion of PS{1,2,4} does work. Here is a little patch to set LINENO. The ways in that it is less than ideal mirror the ways that the line number error reporting is also less than ideal. For example if you run this: ( x=$((1/0)) # Just to add another line # And another ) # error reports this line The error reported will be the closing parenthesis even though I think most people would prefer the error to be the one where x was set. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> * [BUILTIN] Honor tab as IFS whitespace when splitting fields in readcmdStefan Potyra2009-08-11 | | | | | | | | | | | | | | | | | | | When I try to split fields by tabs, dash doesn't honour multiple tabs between fields as whitespace (at least that's how I interpret [1], please correct me if I'm wrong). #!/bin/sh # "1\t2\t\t3" TESTSTRING="1 2 3" # only "\t" IFS=" " echo "$TESTSTRING" | while read p1 p2 p3; do echo "p1=${p1}, p2=${p2}, p3=${p3}" done Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> * [EXPAND] Fix quoted pattern patch breakage