Re: ``complete -d -o default cd'' issue
"Clark J. Wang" writes: > ``-o bashdefault'' works fine for me, thanks. But from the Bash manual I > think ``-o default'' should also work: > > -o defaultUse readline's default filename completion if the compspec > generates no matches. Globbing is a shell feature. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Re: sorry--this is my question
On 07/23/2011 02:17 PM, Joachim Schmitz wrote: Jan Schampera wrote: On 22.07.2011 18:12, the mad doctor kaeding wrote: is this a bug? echo goodbye\ cruel\ world\! goodbye cruel world! echo "goodbye cruel world!" bash: !": event not found echo "goodbye cruel world\!" goodbye cruel world\! No, this is a specific history expansion in interactive shells. Execute ''set +H'' and try again (it's disabled in non-interactive shells). Or use single quotes: echo 'goodbye cruel world!' double quotes only prevent filename expansion, but allow interpretation of other Shell meta-characters Not true. Double qutes remove special meaning of characters except `$', `\', and, when history expansion is enabled, `!'. Meta characters loses its special meaning. Note: `!' is usual history expansion character, but can be a different character. RR Bye, Jojo
Re: ``complete -d -o default cd'' issue
On 7/25/11 10:21 PM, Clark J. Wang wrote: > On Tue, Jul 26, 2011 at 12:00 AM, Andreas Schwab wrote: > >> "Clark J. Wang" writes: >> >>> Here the cannot expand ``*.d'' to ``long-dir-name.d''. Bug? >> >> You need to add -o bashdefault for that. >> > > ``-o bashdefault'' works fine for me, thanks. But from the Bash manual I > think ``-o default'' should also work: > > -o defaultUse readline's default filename completion if the compspec > generates no matches. Globbing is not part of readline's set of filename completions. It is implemented by the shell, hence the need for the bashdefault option. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
Re: ``complete -d -o default cd'' issue
On Wed, Jul 27, 2011 at 12:39 AM, Chet Ramey wrote: > > Globbing is not part of readline's set of filename completions. It is > implemented by the shell, hence the need for the bashdefault option. > Thanks all for the explanation. > > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer > ``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, ITS, CWRUc...@case.edu > http://cnswww.cns.cwru.edu/~chet/ >