Wildcard characters and rc

Wildcard characters and rc

Post by David Douthit » Fri, 27 Jul 2001 21:58:02

I've been trying out the Plan 9 shell rc, and have a question.  I know
the problem but not how to fix it.  Here's the trouble...

In ksh, I can do the following (with the *.list file being a list of
filenames with some wildcards included):

# tar cvf - $(cat var/lib/lrpkg/foo.list) | gzip -9 -c - > foo.lrp

...(is that a Useless Use Of Redirection? :-)

This works as expected... now in rc, the first attempt is:

; tar cvf - `{cat var/lib/lrpkg/foo.list} | gzip -9 -c - > foo.lrp

...which fails, as expected (by experienced rc users, anyway).  The
reason is ksh scans the output of the cat command, and converts the
wildcards to filenames, whereas rc does not.  Thus tar complains of not
being able to find files by the name of "var/lib/lrpkg/foo.*" for
example, whereas under ksh tar never sees this name, as it's been
replaced by the names of the actual files.

However - my question: how do you do this under rc so that it works?


1. difference between /etc/rc.sysinit and /etc/rc.d/rc.sysinit ?

What is the difference between /etc/rc.sysinit and /etc/rc.d/rc.sysinit?
I am using Redhat 8. I did a diff on them and they are identical.
/etc/rc.sysinit is apparently a copy of /etc/rc.d/rc.sysinit since it
says that it is that file, even though it's not (see below).

# /etc/rc.d/rc.sysinit - run once at boot time

I want to change something in whichever of these scripts is run at
bootup, but I don't know which one gets run.


2. Server Tools

3. which user does /etc/rc.d/rc.local / rc.sysinit run as?

4. Enabling referer logging in Netsite Commerce 1.1

5. SOLVED - Raid rc.0, rc.6 rc.S

6. Netscape 4.5 wont run after install

7. shell variable to include wildcard character

8. BEOS 5 the new star in OS's

9. tcsh 6.03 isn't expanding wildcard characters on HP-UX 9.01

10. Wildcard characters in Apache 1.1.1 scriptalias?

11. Passing Quoted Wildcard Characters to a C Program

12. sed and wildcard meta characters