Re: left bit shift (<<) operator now demands line continuation

2010-01-28 Thread Roman Rakus
On 01/27/2010 08:34 PM, j...@horde.net wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VEN

Re: Sort: problem with option -f

2010-01-28 Thread DennisW
On Jan 28, 8:43 am, Guido Milanese wrote: > I am facing a problem concerning SORT on a Linux Ubuntu 9.04 > distribution. > I noticed that the -f option seems not to work. This is an example: > DOG > CAT > zebra > dog > ZEBRA > mouse > > Running "sort" on the file I get: > CAT > dog > DOG > mouse >

Re: Sort: problem with option -f

2010-01-28 Thread Stephane CHAZELAS
2010-01-28, 09:40(-08), DennisW: > On Jan 28, 8:43 am, Guido Milanese wrote: >> I am facing a problem concerning SORT on a Linux Ubuntu 9.04 >> distribution. >> I noticed that the -f option seems not to work. This is an example: >> DOG >> CAT >> zebra >> dog >> ZEBRA >> mouse >> >> Running "sort"

Re: Sort: problem with option -f

2010-01-28 Thread Stephane CHAZELAS
2010-01-28, 18:05(+00), Guido Milanese: > On Thu, 28 Jan 2010 09:40:47 -0800, DennisW wrote: > >> This has little or nothing to do with Bash. > Sorry. I assumed that this group was the place to discuss bash commands. > Where can I ask, if this is not the correct group? I ask because I have > an

Bash sometimes cannot find aliases

2010-01-28 Thread Dan Zwell
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/loca

Sort: problem with option -f

2010-01-28 Thread Guido Milanese
I am facing a problem concerning SORT on a Linux Ubuntu 9.04 distribution. I noticed that the -f option seems not to work. This is an example: DOG CAT zebra dog ZEBRA mouse Running "sort" on the file I get: CAT dog DOG mouse zebra ZEBRA Running "sort -f " I get the same result. No problem of enco

Re: Sort: problem with option -f

2010-01-28 Thread Guido Milanese
On Thu, 28 Jan 2010 09:40:47 -0800, DennisW wrote: > This has little or nothing to do with Bash. Sorry. I assumed that this group was the place to discuss bash commands. Where can I ask, if this is not the correct group? I ask because I have another question concerning SORT. > Try this: > LANG

Re: Bash sometimes cannot find aliases

2010-01-28 Thread Chet Ramey
On 1/28/10 3:55 AM, Dan Zwell wrote: > Bash Version: 4.1 > Patch Level: 2 > Release Status: release > > Description: > When I attempt to run an alias, Bash occasionally says the command > is not found. Re-running the command generally succeeds. This also > occurs with aliases that are named a

Re: left bit shift (<<) operator now demands line continuation

2010-01-28 Thread Chet Ramey
On 1/27/10 2:34 PM, j...@horde.net wrote: > Bash Version: 4.0 > Patch Level: 33 > Release Status: release > > Description: > bash 4.0 fails to parse a function that's parsed successfully by dash(1) as > well as older versions of bash (3.1, 3.2): > > [...@boost:pts/6 ~> cat inet > swap32_posix()

Re: GPL incompatibility? examples/loadables/getconf.c

2010-01-28 Thread Julius Davies
Thanks, everyone, for the responses! Very useful. I'm studying open source licensing at the University of Victoria, BC, Canada, and these responses were great. yours, Julius On Mon, Dec 28, 2009 at 8:52 AM, Chet Ramey wrote: > On 12/25/09 8:28 PM, Julius Davies wrote: >> Configuration Inform

Re: Bash sometimes cannot find aliases

2010-01-28 Thread DennisW
On Jan 28, 2:55 am, Dan Zwell wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' > -DC

Re: Sort: problem with option -f

2010-01-28 Thread Guido Milanese
On Thu, 28 Jan 2010 18:24:15 +, Stephane CHAZELAS wrote: > However, "sort" is part of the standard Unix toolkit, so comp.unix.shell > is probably a good place to ask that question. If you want to discuss > things specific to the GNU implementation of sort, you can go to > gnu.utils.help. Tha

Re: Bash sometimes cannot find aliases

2010-01-28 Thread Dan Zwell
On 01/28/2010 02:28 PM, Chet Ramey wrote: On 1/28/10 3:55 AM, Dan Zwell wrote: Bash Version: 4.1 Patch Level: 2 Release Status: release Description: When I attempt to run an alias, Bash occasionally says the command is not found. This is not a known issue. If you can provide me a way

Re: Bash sometimes cannot find aliases

2010-01-28 Thread Clark J. Wang
On Thu, Jan 28, 2010 at 4:55 PM, Dan Zwell wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-li

Any guide about writing my own bash built-in commands?

2010-01-28 Thread Clark J. Wang
Hi all, I want to write my own built-in bash commands but I cannot find any info about that in bash manual. Anyone has any idea? Thanks. -Clark

Re: Any guide about writing my own bash built-in commands?

2010-01-28 Thread Clark J. Wang
On Fri, Jan 29, 2010 at 1:39 PM, Renjun Wang wrote: > I just put the shell scripts I write into $PATH,it works well > > That's not what I want to do. I want to make my own built-in commands (like `alias', `cd') other than external bash scripts. > 2010/1/28 Clark J. Wang > > Hi all, >> >> I wan

Re: Any guide about writing my own bash built-in commands?

2010-01-28 Thread Chris Jones
On Thu, Jan 28, 2010 at 08:42:25PM EST, Clark J. Wang wrote: > Hi all, > I want to write my own built-in bash commands but I cannot find any > info about that in bash manual. Anyone has any idea? Never done that myself but I found this excellent introductory article: http://cfajohnson.com/shell