A dash to GOTO or a dash from GOTO, that is the question...


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting A dash to GOTO or a dash from GOTO, that is the question...
# 1  
Old 09-19-2019
Hi MadeInGermany...
(Hopefully this does not attach to the previous post.)

Copied and pasted your segment into my original code and it works well.

Thanks...

Bazza...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Use of goto keyword in kernel programming

I have found many source files in the kernel using goto keyword instead of just doing the actual thing. For example: if(blah) goto x; -- -- -- -- -- x: return blah-blah Is there any specific reason for writing the code like this? The first thought that came to my mind is minimizing... (0 Replies)
Discussion started by: BHASKAR JUPUDI
0 Replies

2. Shell Programming and Scripting

Alternative for goto

#!/bin/sh label: echo sql poll v=`sqlplus -s <<! HR/HR set pages 0 echo off feed off select distinct status from emp where id=5; ! ` echo $v; echo it comes here after false if then echo if condition true sqlplus -l scott/tiger <<EOF select * from department; EXIT (2 Replies)
Discussion started by: kumaar1986
2 Replies

3. Shell Programming and Scripting

Using A Goto Label?

Im trying to do something like this but I cant find any documentation. read X if then goto ThisLine fi OTHER CODE OTHER CODE Label: ThisLine echo "You entered 1" (5 Replies)
Discussion started by: Grizzly
5 Replies

4. Shell Programming and Scripting

remove dash

hi I am using ksh #A="abc-def" #typeset -u B="$A" #echo $B ABC-DEF how to remove the dash? i.e. ABCDEF? thank you (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

5. Solaris

Goto last visted directory

Dear All, Can any one pls let me the command for how to goback to previous visited directory from the current working directory in SunOS ? In case of HP-UX; the same can be resolved through "cd -" command. Thanks in advance! Prasanth Babu. (6 Replies)
Discussion started by: prasanth_babu
6 Replies

6. UNIX for Dummies Questions & Answers

dash after ampersant

Hi! I'm new in these forums and more or less new with Unix. So... here is the question: does anyone know where is redirected the output of a command when you put >&- after it? Does it means any standard file descriptor? Thanks! (2 Replies)
Discussion started by: csecnarf
2 Replies

7. UNIX for Dummies Questions & Answers

Stuck after typing goto

uname -a returns: SMP Tue May 17 17:52:23 EDT 2005 i686 athlon i386 GNU/Linux I have many aliases beginning with "goto" so... if I type goto and then hit return (oops) A goto prompt pops up and I cant exit from it(I tried MANY key seqs) The only way to exit is to kill the term window... (2 Replies)
Discussion started by: rairey
2 Replies

8. Shell Programming and Scripting

goto statement

I have a test script for using goto statement but its not working. please help i tried both in linux and hp-ux it's not working please help #! /bin/ksh t=`ps -ef|grep ti.sh|grep -v grep` if ; then goto start else goto stop fi start: echo "start" stop: echo "stop" (5 Replies)
Discussion started by: Krrishv
5 Replies

9. Shell Programming and Scripting

Use of GOTO statement in scripts

Hey Guys.. I just want to know how to use Goto statement in shell scripts. I know the basic use of statement. Goto Label The above statement will search for some label which must be defined in the script itself as: label: I tried these combinations but I didn't work out for me and I'm... (7 Replies)
Discussion started by: vikasduhan
7 Replies

10. Shell Programming and Scripting

how to goto in ksh

Hi, I'm trying to use the goto in ksh but it does not appear to be a valid command. Is that only valid in csh? Anything similar in ksh that I can use? Appreciate any help you can provide. Thanks. geraldine (4 Replies)
Discussion started by: Geraldine
4 Replies
Login or Register to Ask a Question
XSetLineAttributes(3X11)												  XSetLineAttributes(3X11)

Name
       XSetLineAttributes, XSetDashes - GC convenience routines

Syntax
       XSetLineAttributes(display, gc, line_width, line_style, cap_style, join_style)
	     Display *display;
	     GC gc;
	     unsigned int line_width;
	     int line_style;
	     int cap_style;
	     int join_style;

       XSetDashes(display, gc, dash_offset, dash_list, n)
	       Display *display;
	       GC gc;
	       int dash_offset;
	       char dash_list[];
	       int n;

Arguments
       cap_style Specifies the line-style and cap-style you want to set for the specified GC.  You can pass or

       dash_list Specifies the dash-list for the dashed line-style you want to set for the specified GC.

       dash_offset
		 Specifies the phase of the pattern for the dashed line-style you want to set for the specified GC.

       display	 Specifies the connection to the X server.

       gc	 Specifies the GC.

       join_style
		 Specifies the line join-style you want to set for the specified GC.  You can pass or

       line_style
		 Specifies the line-style you want to set for the specified GC.  You can pass or

       line_width
		 Specifies the line-width you want to set for the specified GC.

       n	 Specifies the number of elements in dash_list.

Description
       The function sets the line drawing components in the specified GC.

       can generate and errors.

       The  function sets the dash-offset and dash-list attributes for dashed line styles in the specified GC.	There must be at least one element
       in the specified dash_list, or a error results.	The initial and alternating elements (second, fourth, and so on) of the dash_list are  the
       even dashes, and the others are the odd dashes.	Each element specifies a dash length in pixels.  All of the elements must be nonzero, or a
       error results.  Specifying an odd-length list is equivalent to specifying the same list concatenated with itself to produce an  even-length
       list.

       The  dash-offset  defines  the phase of the pattern, specifying how many pixels into the dash-list the pattern should actually begin in any
       single graphics request.  Dashing is continuous through path elements combined with a join-style but is reset to the dash-offset each  time
       a cap-style is applied at a line endpoint.

       The  unit  of measure for dashes is the same for the ordinary coordinate system.  Ideally, a dash length is measured along the slope of the
       line, but implementations are only required to match this ideal for horizontal and vertical lines.  Failing the ideal semantics, it is sug-
       gested  that  the length be measured along the major axis of the line.  The major axis is defined as the x axis for lines drawn at an angle
       of between -45 and +45 degrees or between 315 and 225 degrees from the x axis.  For all other lines, the major axis is the y axis.

       can generate and errors.

Diagnostics
       The server failed to allocate the requested resource or server memory.

       A value for a GContext argument does not name a defined GContext.

       Some numeric value falls outside the range of values accepted by the request.
		 Unless a specific range is specified for an argument, the full range defined by the argument's type is  accepted.   Any  argument
		 defined as a set of alternatives can generate this error.

See Also
       XCreateGC(3X11), XQueryBestSize(3X11), XSetArcMode(3X11), XSetClipOrigin(3X11), XSetFillStyle(3X11), XSetFont(3X11), XSetState(3X11), XSet-
       Tile(3X11)
       Guide to the Xlib Library

															  XSetLineAttributes(3X11)