Top
Back: D.2.2.16 watchdog
Forward: D.2.2.18 primecoeffs
FastBack: Appendix D SINGULAR libraries
FastForward: E Release Notes
Up: D.2.2 general_lib
Top: 1 Preface
Contents: Table of Contents
Index: F Index
About: About This Document

D.2.2.17 which

Procedure from library general.lib (see general_lib).

Usage:

which(command); command = string expression

Return:

Absolute pathname of command, if found in search path. Empty string, otherwise.

Note:

Based on the Unix command ’which’.

Example:

LIB "general.lib";
which("sh");
→ /bin/sh

Top Back: D.2.2.16 watchdog Forward: D.2.2.18 primecoeffs FastBack: Appendix D SINGULAR libraries FastForward: E Release Notes Up: D.2.2 general_lib Top: 1 Preface Contents: Table of Contents Index: F Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.