From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 31 00:48:52 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6228E106566C for ; Sun, 31 Oct 2010 00:48:52 +0000 (UTC) (envelope-from redcrash@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 24CDE8FC13 for ; Sun, 31 Oct 2010 00:48:51 +0000 (UTC) Received: by iwn39 with SMTP id 39so5351534iwn.13 for ; Sat, 30 Oct 2010 17:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=ObuMUgXw1kQN3WOK12DQ6zbzKWlnYvpXrFBK4Lnvito=; b=T9oeZsfRqP95H4dZV2FdWZpCmPlbtWThOg0WaQ5I7KcEbyRIVFrMYF6ruLLY5+9Orm 3jy0zLIE0XyZC6i7PzePB1wmhcuuBKtq/DScvz+97Kkr3D/LPjG9tI7q7ZFeIRyWX4is kfCNlWu93FS7F9cOit0w3dLaH6TugCpg70u5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=JLglUtwso5HslPXQmW5jKnawBJhJt8b+1I6rPtNoRnbsQb7/vmHDR4UlzUSmOFPZUt OoUnthy6mXkwz7GRRtABsPu5sOZ+iFmFUvcvDYX3o5h/p/p+vvqGgid7IX3yz2dnQEau z61bY8k6M5IU86dufg28hDfaflw9KENV5vBfw= MIME-Version: 1.0 Received: by 10.231.85.206 with SMTP id p14mr10443462ibl.89.1288486129383; Sat, 30 Oct 2010 17:48:49 -0700 (PDT) Received: by 10.231.38.7 with HTTP; Sat, 30 Oct 2010 17:48:49 -0700 (PDT) In-Reply-To: <20101030224001.GA10529@mark-laptop-bsd.mark-home> References: <4CCC7C07.8080903@FreeBSD.org> <20101030220828.GA24395@stack.nl> <20101030224001.GA10529@mark-laptop-bsd.mark-home> Date: Sun, 31 Oct 2010 02:48:49 +0200 Message-ID: From: Harald Servat To: Mark Johnston Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, Jilles Tjoelker Subject: Re: Space character in rc.conf variable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Oct 2010 00:48:52 -0000 Wow! It looks like the subject arised some issues which are out of my knowledge. Right now, I can follow Doug's suggestion to change my SSID. Thank you for all your comments. 2010/10/31 Mark Johnston > On Sun, Oct 31, 2010 at 12:08:28AM +0200, Jilles Tjoelker wrote: > > Array support in the shell could make this easier, but not much unless > > the rc.conf syntax would be changed as well, like > > ifconfig_wlan0=(ssid "SSID WITH SPACE" dhcp) > > but then changed some more such that "DHCP" can be used as SSID. > > > > Array support would add a fair bit of code to sh, and even then it will > > remain fairly limited and clumsy. For example, an array can only be > > returned from a function by passing the name of an existing array to > > place the result in and using eval, extending setvar in some strange way > > or implementing another ksh93 extension, namerefs. > > > > -- > > Jilles Tjoelker > > Incidentally, I've actually been working on this, though it was more for > fun than anything else - my impression is that new features for sh(1) > are generally unwelcome because of the testing required and the > possibility of regressions. I have some of the syntax working, e.g. > > $ foo[1]=one > $ foo[2]=two > $ foo[3]=three > $ echo ${foo[1]} ${foo[2]} ${foo[3]} > one two three > $ unset foo[2] > $ echo ${foo[1]} ${foo[2]} ${foo[3]} > one three > > It was while working on the ${#arr[@]} syntax that I ran into > bin/151720. > > If people are actually interested in this, I can discuss my changes in > more detail. The actually array implementation is quite simple, around > 200 LOC... a number of changes to var.c, parser.c and eval.c are > necessary however. > > -Mark > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- _________________________________________________________________ Fry: You can see how I lived before I met you. Bender: You lived before you met me?! Fry: Yeah, lots of people did. Bender: Really?!