cshell .cshrc738 (3/25/2012 4:53:32 AM) comp.unix.shell In my .cshrc I have stuff going on that prints to stdout. Problem is, sometimes I see this stuff after I start another program from the shell (a program that outputs stuff to terminal). For example, when I try... G
Why braces to delay evaluation of expressions?723 (3/8/2012 6:02:44 AM) comp.lang.tcl Why is about tcl language that requires braces to delay evaluation of variables in expressions for things like loops? Was there some deep reason when tcl was first implemented? In other languages we have no p... G
everything is a command in sh...?!?1129 (3/4/2012 6:45:56 AM) comp.unix.shell If everything is a command in Bourne derivative (or C derivative but first question doesn't apply to csh) shells, then : 1) What command is variable assignment (a=something) ? In csh it is set command, and in ... G
setting a array with a list237 (3/1/2012 1:25:09 AM) comp.unix.questions Suppose variable var has var= aaaa bbbb ccc To put that information into a 3 element array, why don't people do array=( $var ) In code snippets I always see: 1) array=( `echo $var` ) or 2) read -ra array... G
ampersand process in a subshell398 (2/22/2012 2:23:50 AM) comp.unix.programmer If I have a shell script which I push to the background script & then inside that script i have script2 & then inside that script i havfe script3 & Under all unixes, will script, script2, script3 be diffe... G
interactive mode vs. non-interactive mode of a shell258 (2/17/2012 2:17:02 AM) comp.unix.shell I have some questions. 1) Are there really 2 modes (interactive vs. non) for shells (e.g. / bin/sh). Or is the interactive one just with echo on? 2) If a shell script runs in a noninteractive shell, how we ca... G
discuss portibility of this ENDIAN testing code624 (8/18/2006 1:28:12 AM) comp.lang.c Code in question (assuming CHAR_BIT = 8 system): union { unsigned int whole; unsigned char bytes[sizeof(int)]; } var; var.whole = 0xFF; if( var.bytes[0] == 0xFF ) ... G
nested switches, with common labels346 (7/21/2006 2:45:52 AM) comp.lang.c Compiler won't let me nest switch statements with common labels inside them (in the cases). Why is this a problem (either in terms of standard or in terms of compiler's ability to make sense of it)? ex: typ... G
"extern" inside a block1240 (2/23/2005 5:36:39 PM) comp.lang.c I've seen some code with extern modifiers in front of variables declared inside blocks. Are these purely definitions (no definition) or are they definitions with static duration but external linkage? Not much... gaya.patel(53)
Please critique my code/program831 (2/27/2005 4:11:27 AM) comp.lang.c I wrote the following program to remove C89 type comments from stdin and send it to stdout (as per exercise in K&R2) and it works but I was hoping more experienced programmer would critique the layout/style/etc... gaya.patel(53)
multi-file programs - main.c recommended?1147 (3/3/2005 1:14:49 AM) comp.lang.c Can anways explain why many multi-file programs I've seen don't have a main.c file, instead main() is hidden in a file with a different name? Is this just a preference, or is there an unspoken rule (or advantag... gaya.patel(53)
My K&R Ex 5-10 program, layout looks weird.828 (3/10/2005 8:49:33 PM) comp.lang.c Can people please comment on the layout/style of my problem? The major issue I had was the layout. I ended up having to put a relatively large switch statement, inside an if statement, which is inside a while ... gaya.patel(53)
floating point problems2621 (2/2/2006 8:41:20 PM) comp.lang.c Hello, I'm having trouble with floating point problems. I'm trying to write a function that calculates the distance between two cartesian points (integer coordinates). I have the function working, but it fail... gaya.patel(53)
Data structure?1020 (6/18/2006 6:55:59 PM) comp.programming Hi, Is a language supported type (simple or aggregate) considered a data structure? For example, would a multidimensional array be considered a data structure? Thanks ... gaya.patel(53)
nested switches, with common labels346 (7/21/2006 2:45:52 AM) comp.lang.c Compiler won't let me nest switch statements with common labels inside them (in the cases). Why is this a problem (either in terms of standard or in terms of compiler's ability to make sense of it)? ex: typ... gaya.patel(53)
setting a array with a list237 (3/1/2012 1:25:09 AM) comp.unix.questions Suppose variable var has var= aaaa bbbb ccc To put that information into a 3 element array, why don't people do array=( $var ) In code snippets I always see: 1) array=( `echo $var` ) or 2) read -ra array... gaya.patel(53)
everything is a command in sh...?!?1129 (3/4/2012 6:45:56 AM) comp.unix.shell If everything is a command in Bourne derivative (or C derivative but first question doesn't apply to csh) shells, then : 1) What command is variable assignment (a=something) ? In csh it is set command, and in ... gaya.patel(53)