Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #200714
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: question about ls |
| Date | 2018-09-28 14:30 +0200 |
| Message-ID | <wD049-js-1@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <wC4My-881-7@gated-at.bofh.it> <wCE3D-3sh-9@gated-at.bofh.it> <wCEmZ-3O0-1@gated-at.bofh.it> <wCTYJ-56j-3@gated-at.bofh.it> <wCV4t-5VZ-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Sep 28, 2018 at 09:06:59AM +0200, Ionel Mugurel Ciobîcă wrote: > On 28-09-2018, at 17h 52'07", Richard Hector wrote about "Re: question about ls" > > Eww. Tab completion also gets screwed up by this: > > > > richard@zircon:~/test$ rm <tab> > > file is one this You're probably using "bash-completion", which is a separate project from bash, and is known to have many flaws. > I am not a bash user, but if I try what you suggest, Richard, I see > the file as "this^Jis^Jone^Jfile" with tab completion (on one line). And in regular bash (without bash-completion), I see this: wooledg:/tmp/x$ rm 'this is one file' _ where _ is the cursor. > P.S. What doesn't mean the $'foo\nbar' construction? In tcsh it says > "Illegal variable name." and in history it is recalled as $\'foa\nbar' > instead. I see that ksh also behave as bash with this $'foo\nbar' > entity. In bash, $'...' is a special form of quoting which acts like single-quoting except that certain backslash+letter sequences are expanded in a way that's similar to C's strings. For example, \n expands to a newline character, and \t to a tab. See the man page for full details. wooledg:~$ printf %s $' \t\n' | od -tx1 -An 20 09 0a It's the cleanest way to specify special characters in an argument string or a variable assignment.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Scribus has stopped importing PDF files Gary Dale <garyndp@gmail.com> - 2018-09-25 23:00 +0200
question about ls Long Wind <longwind2@yahoo.com> - 2018-09-26 00:30 +0200
Re: question about ls Ben Caradoc-Davies <ben@transient.nz> - 2018-09-26 00:40 +0200
Re: question about ls Long Wind <longwind2@yahoo.com> - 2018-09-26 01:00 +0200
Re: question about ls Long Wind <longwind2@yahoo.com> - 2018-09-26 01:00 +0200
Re: question about ls Ben Caradoc-Davies <ben@transient.nz> - 2018-09-26 01:20 +0200
Re: question about ls Kent West <westk@acu.edu> - 2018-09-27 15:00 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-27 15:20 +0200
Re: question about ls Richard Hector <richard@walnut.gen.nz> - 2018-09-28 08:00 +0200
Re: question about ls Ionel Mugurel Ciobîcă <I.M.Ciobica@gmail.com> - 2018-09-28 09:10 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-28 14:30 +0200
Re: question about ls Richard Hector <richard@walnut.gen.nz> - 2018-09-28 16:40 +0200
Re: question about ls Virgo Pärna <virgo.parna@mail.ee> - 2018-10-03 14:10 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-03 15:00 +0200
Re: question about ls David Wright <deblis@lionunicorn.co.uk> - 2018-09-27 16:00 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-27 16:10 +0200
Re: question about ls David Wright <deblis@lionunicorn.co.uk> - 2018-09-27 16:30 +0200
Re: question about ls Michael Stone <mstone@debian.org> - 2018-09-27 17:10 +0200
Re: question about ls <tomas@tuxteam.de> - 2018-09-28 09:00 +0200
Re: question about ls Michael Stone <mstone@debian.org> - 2018-09-28 12:50 +0200
Re: question about ls <tomas@tuxteam.de> - 2018-09-28 09:00 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-27 14:40 +0200
Re: question about ls Gene Heskett <gheskett@shentel.net> - 2018-09-27 17:00 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-27 17:10 +0200
Re: Scribus has stopped importing PDF files rv riveravaldez <riveravaldezmail@gmail.com> - 2018-09-28 01:40 +0200
csiph-web