From: Charles Forsyth <charles.forsyth@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] rc: null list in concatenation
Date: Tue, 25 Nov 2014 10:00:22 +0000 [thread overview]
Message-ID: <CAOw7k5ikT8uCH5xQ2SCqAS3eAC7vZNDAZRt0uTRuWYTN+egh7w@mail.gmail.com> (raw)
In-Reply-To: <DAFEF014-D6DE-4A57-BB09-DAF335018E5C@ar.aichi-u.ac.jp>
[-- Attachment #1: Type: text/plain, Size: 423 bytes --]
It's a "null list" not a "null string". You can use a null string:
% s=''
% ls $s^/x
but not a null list (like using null in many lisp list operations, or the
difference between strcat of nil and strcat of ""):
% s=()
% ls $s^/x
rc (-/bin/rc): null list in concatenation
A completely unset variable is a null list. Also, `{...} returns a list
(of words) not a string,
hence the diagnostic in that case.
[-- Attachment #2: Type: text/html, Size: 857 bytes --]
next prev parent reply other threads:[~2014-11-25 10:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-25 4:24 trebol
2014-11-25 6:08 ` arisawa
2014-11-25 6:56 ` trebol
2014-11-25 8:30 ` arisawa
2014-11-25 10:00 ` Charles Forsyth [this message]
2014-11-25 19:37 ` trebol
[not found] <fef8ab0af3b38f58c82f797482943532@india.com>
2014-11-25 20:44 ` trebol
2014-11-25 20:47 ` trebol
2014-11-26 6:34 trebol
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOw7k5ikT8uCH5xQ2SCqAS3eAC7vZNDAZRt0uTRuWYTN+egh7w@mail.gmail.com \
--to=charles.forsyth@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).