-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alias ll
and issues with -q
or $QUOTING_STYLE
#255
Comments
I've experienced this issue before. Any idea how difficult it is going to be to solve this? |
ll
and issues with -q
or $QUOTING_STYLE
@ghthor I believe that fixing this issue without race conditions is not trivial. Others, please see #204 for some background on this issue before reading further. This page lists all the possible quoting styles for GNU Note that The best thing we can do (while still parsing We would still need to honour the user's quoting style:
Non solutions:
|
For now I propose to prepend This will cause the shortcuts to work except in the case that a user calls
Note the letter
@ghthor @ndbroadbent are you comfortable with this initial approach? |
This seems alright to me. Do we have any test cases for this committed? Don't feel that you have to make them in addition to these upgrades. I sort of need to explore this entire space of QUOTING_STYLE and what it means. I'm somewhat concerned about this now that you've brought it all forward and I'd like to use this as a platform to teach and push people into more and more modern shell versions(Looking at you Apple). |
Given a directory listing (quoted so you can see what's going on):
Note the
^H
or backspace betweenback
andspace
.ll
shows it diffrently:Note:
normal
, (the only file without quotes) it's shortcut[5]
doesn't align.'back'$'\b''space'
is no longer shown correctly by scm_breeze (the\b
is removed) - I can't copy / paste this filename, eg if I want to dorm -- 'back'$'\b''space'
.Trying to print the empty file with
cat
:Things only seem to work properly with
--quoting-style=literal
:Note the above successful shortcut - no error message from cat (empty file).
Any other quoting style will make for a non-existent shortcut, as the quoted string picked up from the
ls
output doesn't exist as a filename:The shortcut still doesn't work:
The text was updated successfully, but these errors were encountered: