summary refs log tree commit diff
path: root/src/arith_yylex.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-05-19 09:15:05 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-05-19 09:15:05 +0800
commitd6d06ff5c2ea0fa44becc5ef4340e5f2f15073e4 (patch)
tree36bf908c575bbc5da9286a925bb1ce64eef54122 /src/arith_yylex.c
parent[ARITH] Fixed lexical error on & and | (diff)
downloaddash-d6d06ff5c2ea0fa44becc5ef4340e5f2f15073e4.tar.gz
dash-d6d06ff5c2ea0fa44becc5ef4340e5f2f15073e4.zip
[EXPAND] Fixed non-leading slash treatment in expmeta
Back in January an attempt was made to fix the interpretation of
quoted slashes in expmeta.  However, this only fixed those cases
where the quoted slash is at the front of the word.  The case of
non-leading slashes caused the previous directory part to gain a
back slash suffix which causes subsequent pattern matches to fail.

This patch fixes this by removing the back slash in that case.

Thanks to Romain Tartière fox reporting this bug.

Test case:

    echo /*"/null"

Old result:

    /*/null

New result:

    /dev/null

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/arith_yylex.c')
0 files changed, 0 insertions, 0 deletions
>Use wchar_t strings for all of UIJune McEnroe 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe 2018-08-04Handle /topicJune McEnroe