Re: bash / word seperators

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mauricio Vergara Ereche wrote:
> Hi Brian!
> 
> El Lunes, 8 de Mayo de 2006 11:50, Brian D. McGrew escribio:
>> Back in 'ye olden days, we used to have a customized version of bash
>> that recognized '/' as a word separator; which was very nice when
>> editing command lines, a CTRL-W would not erase your whole typed path,
>> just back to the slash.
>>
>> Without building a new version of bash, how can I make the shell
>> recognize '/' as a word separator???
> 
> You must set the $IFS variable
> look in "man bash" the section "Word splitting"

Extremely bad idea.  $IFS is used to split a command line into arguments
for the command you want to run.  If you add / to $IFS, you will have to
escape every / in all your path names that you want to pass to commands,
thus defeating the purpose of the exercise.


-- 
Sjoerd Mullender

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux