Skip to content

Commit

Permalink
Example with Filename( path, "date" ) converted to Log
Browse files Browse the repository at this point in the history
The output is system-dependent. For example, on
Scientific Linux it returns /usr/bin/date instead of /bin/date.
  • Loading branch information
Alexander Konovalov committed Dec 1, 2016
1 parent 392ad82 commit b63d633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/process.gd
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@
## In order to find a system program use <Ref Func="DirectoriesSystemPrograms"/>
## together with <Ref Oper="Filename" Label="for a directory and a string"/>.
## <P/>
## <Example><![CDATA[
## <Log><![CDATA[
## gap> path := DirectoriesSystemPrograms();;
## gap> date := Filename( path, "date" );
## "/bin/date"
## ]]></Example>
## ]]></Log>
## <P/>
## The next example shows how to execute <C>date</C> with no argument and no input,
## and collect the output into a string stream.
Expand Down

0 comments on commit b63d633

Please sign in to comment.