Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!hao!oddjob!gargoyle!ihnp4!chinet!megabyte From: megabyte@chinet.UUCP Newsgroups: comp.unix.questions Subject: Quotiing * in Bourne shell question Message-ID: <1040@chinet.UUCP> Date: Wed, 20-May-87 12:48:48 EDT Article-I.D.: chinet.1040 Posted: Wed May 20 12:48:48 1987 Date-Received: Sat, 23-May-87 02:28:27 EDT Reply-To: megabyte@chinet.UUCP (Dr. Megabyte) Organization: Chinet - Public Access Unix Lines: 29 Summary: Using variables set to * on command line I have looked in the manuals and this still puzzles me. So.. since this is unix.questions... I want to set a shell variable equal to an asterix (*). Then use that variable in seetting another shell variable and then finally use the second variable as a command line with the asterix NOT being expanded, I want it passed to the program. Here is an example: #!/bin/sh area="*" # set area to * cmdline="acego -q ovt.rpt $area" # run report $cmdline | lp -dDS180 # to lp in 1215 exit 0 # Bye-bye See, I want the acego program to see an asterix on the command line, not all the files in the curreent directory. The area variable me be set to other things other than an asterix earlier in the shell script, and the output may go to other printers. This is just a stripped down version of the problem. Any way to do this? Everthing I have tried either sends all the file names to acego or sends something like "*" (3 characters) to it. Ideas? -- UUCP: (1) seismo!why_not!scsnet!sunder Mark E. Sunderlin (2) ihnp4!chinet!megabyte aka Dr. Megabyte CIS: 74026,3235 (202) 634-2529 Mail: IRS PM:PFR:D:NO 1111 Constitution Ave. NW Washington,DC 20224