bugGNU Enscript - Bugs: bug #57965, the wildcard * for input files...

 
 

bug #57965: the wildcard * for input files daes not work properly?

Submitter:  carmen <carmengr>
Submitted:  Fri 06 Mar 2020 04:55:08 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 31 May 2021 02:39:27 PM UTC, comment #10: 

" In your newest example, it also seems to me that the file f.f is not included at all.". That was that I omitted it in the list for enscript,  it is not a problem.

The 'twice' problem remains with the new locale.

> env LANG=en_US.utf8 LANGUAGE=en_US:en LC_ALL=en_US.utf8 bash


> ls

a  b  c  d  e  f  g

> locale

LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8

> enscript -v  a b c d e f g -pfoo.ps

AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
downloading font "Courier-Bold"
downloading font "Courier"
processing file "f"...
processing file "g"...
processing file "a"...
processing file "b"...
processing file "c"...
processing file "d"...
processing file "e"...
processing file "f"...
processing file "g"...
[ 9 pages * 1 copy ] left in foo.ps

carmen <carmengr>
Mon 31 May 2021 02:18:47 PM UTC, comment #9: 

I agree that it looks like this problem is not caused by the shell's wildcard expansion.   In your newest example, it also seems to me that the file f.f is not included at all.   IMO that's a bit worse than just duplicate output.

I wonder if this is a problem in enscript which is only happening in cases where the locale settings have some particular property.   This might be affected for example by your environment setting LC_CTYPE=es_ES.UTF-8 or by which locale data files are actually built on your system.

Are you able to reproduce the problem with your locale set up for a different locale?  My guess is that the enscript code is most well-tested in the C locale and some English-language US-centric locale.   Try this config for example (it's not the same as my config though):

$ env LANG=en_US.utf8 LANGUAGE=en_US:en LC_ALL=en_US.utf8 bash

$ locale
LANG=en_US.utf8
LANGUAGE=en_US:en
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8

$ (try to reproduce the problem here)



James Youngman <jay>
Mon 31 May 2021 02:12:45 PM UTC, comment #8: 

Thanks for the attention.

Examples of how 'my enscript 1.6.6' works:

$ ls
a  b  c  d  e  f  g

$ enscript -v  a   -pfoo.ps
AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
lpr: Error - La impresora o clase no existe.

$ enscript -v  a b  -pfoo.ps
AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
cargando la fuente "Courier"
procesando el archivo "a"...
procesando el archivo "b"...
[ 2 pages * 1 copy ] copiadas en foo.ps

$ rm foo.ps; enscript -v  a b c -pfoo.ps
AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
cargando la fuente "Courier"
procesando el archivo "a"...
procesando el archivo "b"...
procesando el archivo "c"...
[ 3 pages * 1 copy ] copiadas en foo.ps

$ rm foo.ps; enscript -v  a b c d -pfoo.ps
AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
cargando la fuente "Courier"
procesando el archivo "d"...
procesando el archivo "a"...
procesando el archivo "b"...
procesando el archivo "c"...
procesando el archivo "d"...
[ 5 pages * 1 copy ] copiadas en foo.ps

$ rm foo.ps; enscript -v  a b c d e -pfoo.ps
AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
cargando la fuente "Courier"
procesando el archivo "e"...
procesando el archivo "a"...
procesando el archivo "b"...
procesando el archivo "c"...
procesando el archivo "d"...
procesando el archivo "e"...
[ 6 pages * 1 copy ] copiadas en foo.ps

$ rm foo.ps; enscript -v  a b c d e f -pfoo.ps
AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
cargando la fuente "Courier"
procesando el archivo "e"...
procesando el archivo "f"...
procesando el archivo "a"...
procesando el archivo "b"...
procesando el archivo "c"...
procesando el archivo "d"...
procesando el archivo "e"...
procesando el archivo "f"...
[ 8 pages * 1 copy ] copiadas en foo.ps

$ rm foo.ps; enscript -v  a b c d e f g -pfoo.ps
AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
cargando la fuente "Courier"
procesando el archivo "f"...
procesando el archivo "g"...
procesando el archivo "a"...
procesando el archivo "b"...
procesando el archivo "c"...
procesando el archivo "d"...
procesando el archivo "e"...
procesando el archivo "f"...
procesando el archivo "g"...
[ 9 pages * 1 copy ] copiadas en foo.ps
$

carmen <carmengr>
Mon 31 May 2021 01:48:13 PM UTC, comment #7: 

Similarly, the enscript command includes twice the two files e.f and g.f in the following example
It looks like a problem with enscript command not with the * wildcard

> ls

a.f  b.f  c.f  d.f  e.f  f.f  g.f

> enscript -v -pfoo.ps a.f b.f c.f d.f e.f g.f

AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
cargando la fuente "Courier"
procesando el archivo "e.f"...
procesando el archivo "g.f"...
procesando el archivo "a.f"...
procesando el archivo "b.f"...
procesando el archivo "c.f"...
procesando el archivo "d.f"...
procesando el archivo "e.f"...
procesando el archivo "g.f"...
[ 8 pages * 1 copy ] copiadas en foo.ps

carmen <carmengr>
Mon 31 May 2021 01:39:00 PM UTC, comment #6: 

Even more surprising...
When listing the files to be added (not wildcard now) the result is as before, files added out of order and some of them more than once. I do not have a clue of the reason

> ls *.f

P0_1.f  P0_2.f  P0_3.f  P0_4.f  P0_5.f  P1_1.f  P1_2.f  P1_3.f  P1_4.f  P1_5.f

> enscript -v -pfoo.ps P0_1.f P0_2.f P0_3.f P0_4.f P0_5.f P1_1.f P1_2.f P1_3.f P1_4.f P1_5.f

AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
cargando la fuente "Courier"
procesando el archivo "P1_2.f"...
procesando el archivo "P1_3.f"...
procesando el archivo "P1_4.f"...
procesando el archivo "P1_5.f"...
procesando el archivo "P0_1.f"...
procesando el archivo "P0_2.f"...
procesando el archivo "P0_3.f"...
procesando el archivo "P0_4.f"...
procesando el archivo "P0_5.f"...
procesando el archivo "P1_1.f"...
procesando el archivo "P1_2.f"...
procesando el archivo "P1_3.f"...
procesando el archivo "P1_4.f"...
procesando el archivo "P1_5.f"...
[ 14 pages * 1 copy ] copiadas en foo.ps

Now with other file names:

> rm -f .f; for n in a b c d e f g ; do printf '        PROGRAM %s\n' "$n" >|${n}.f; done; enscript -v -pfoo.ps .f

AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
cargando la fuente "Courier"
procesando el archivo "e.f"...
procesando el archivo "f.f"...
procesando el archivo "g.f"...
procesando el archivo "a.f"...
procesando el archivo "b.f"...
procesando el archivo "c.f"...
procesando el archivo "d.f"...
procesando el archivo "e.f"...
procesando el archivo "f.f"...
procesando el archivo "g.f"...
[ 10 pages * 1 copy ] copiadas en foo.ps

carmen <carmengr>
Mon 31 May 2021 11:34:06 AM UTC, comment #5: 

With 'ls' and 'echo' the outputs are OK

> /bin/ls *.f

P0_1.f  P0_2.f  P0_3.f  P0_4.f  P0_5.f  P1_1.f  P1_2.f  P1_3.f  P1_4.f  P1_5.f

> echo *.f

P0_1.f P0_2.f P0_3.f P0_4.f P0_5.f P1_1.f P1_2.f P1_3.f P1_4.f P1_5.f

comentario nº4:

> Interesting symptoms.   What happens if you do (in the same directory):
>
> $ /bin/echo *.f
>
> and
>
> $ /bin/ls *.f
>
>

carmen <carmengr>
Mon 31 May 2021 11:28:17 AM UTC, comment #4: 

Interesting symptoms.   What happens if you do (in the same directory):

$ /bin/echo *.f

and

$ /bin/ls *.f


James Youngman <jay>
Mon 31 May 2021 11:04:32 AM UTC, comment #3: 

Thanks a lot for your comment.

1)  The version of 'enscript' is the following:

> enscript -V

GNU Enscript 1.6.6
Copyright (C) 1995-2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.

2) A friend with the same linux in his computer is getting the same error of lexicographic order and files being processed more than once by enscript. My linux installation is

> cat /etc/*-release

NAME="openSUSE Leap"
VERSION="15.1"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"
PRETTY_NAME="openSUSE Leap 15.1"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

3) Defining the shell following your sugestions

> $ LC_ALL=C
> $ export LC_ALL
> $ exec bash

I get the same unsorted/duplicated results as before.

> LC_ALL=C
> export LC_ALL
> exec bash
> rm -f .f; for n in P0_1  P0_2  P0_3  P0_4  P0_5  P1_1  P1_2  P1_3  P1_4  P1_5; do printf '        PROGRAM %s\n' "$n" >|${n}.f; done; enscript -v -pfoo.ps .f

AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
cargando la fuente "Courier"
procesando el archivo "P1_2.f"...
procesando el archivo "P1_3.f"...
procesando el archivo "P1_4.f"...
procesando el archivo "P1_5.f"...
procesando el archivo "P0_1.f"...
procesando el archivo "P0_2.f"...
procesando el archivo "P0_3.f"...
procesando el archivo "P0_4.f"...
procesando el archivo "P0_5.f"...
procesando el archivo "P1_1.f"...
procesando el archivo "P1_2.f"...
procesando el archivo "P1_3.f"...
procesando el archivo "P1_4.f"...
procesando el archivo "P1_5.f"...
[ 14 pages * 1 copy ] copiadas en foo.ps

3) Following the previous command, I have checked the environment variables, in case they can give a clue.

> printenv

PERLBREW_VERSION=0.73
PERLBREW_PERL=perl-5.20.1
GS_LIB=/home/grecio/.fonts
KDE_FULL_SESSION=true
LC_ALL=C
LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.xz=00;31:*.avi=01;35:*.bmp=01;35:*.dl=01;35:*.fli=01;35:*.gif=01;35:*.gl=01;35:*.jpg=01;35:*.jpeg=01;35:*.mkv=01;35:*.mng=01;35:*.mov=01;35:*.mp4=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.svg=01;35:*.tga=01;35:*.tif=01;35:*.webm=01;35:*.webp=01;35:*.wmv=01;35:*.xbm=01;35:*.xcf=01;35:*.xpm=01;35:*.aiff=00;32:*.ape=00;32:*.au=00;32:*.flac=00;32:*.m4a=00;32:*.mid=00;32:*.mp3=00;32:*.mpc=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:*.wma=00;32:*.wv=00;32:
HOSTTYPE=x86_64-linux
XAUTHLOCALHOSTNAME=FM134
LESSCLOSE=lessclose.sh %s %s
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
LANG=es_ES.UTF-8
WINDOWMANAGER=/usr/bin/startkde
LESS=-M -I -R
PROFILEHOME=
DISPLAY=:0
JAVA_ROOT=/usr/lib64/jvm/jre-11-openjdk
HOSTNAME=FM134
OLDPWD=/home/grecio/kk/fortran
SHELL_SESSION_ID=457605bfcc504ebc9fc42eb036d9510b
CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu
CSHEDIT=emacs
GPG_TTY=/dev/pts/1
AUDIODRIVER=pulseaudio
LESS_ADVANCED_PREPROCESSOR=no
COLORTERM=truecolor
PERL_MB_OPT=--install_base "/home/grecio/perl5"
JAVA_HOME=/usr/lib64/jvm/jre-11-openjdk
ALSA_CONFIG_PATH=/etc/alsa-pulse.conf
VENDOR=unknown
MACHTYPE=x86_64
XDG_VTNR=7
SSH_AUTH_SOCK=/tmp/ssh-TXz6NrRqNFsp/agent.2078
QEMU_AUDIO_DRV=pa
MINICOM=-c on
QT_SYSTEM_DIR=/usr/share/desktop-data
OSTYPE=linux
XDG_SESSION_ID=2
USER=grecio
PAGER=less
DESKTOP_SESSION=/usr/share/xsessions/plasma5
PERLBREW_MANPATH=/home/grecio/perl5/perlbrew/perls/perl-5.20.1/man
KONSOLE_VERSION=181203
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/grecio/.gtkrc-2.0:/home/grecio/.config/gtkrc-2.0
MORE=-sl
GROUP=users
PWD=/home/grecio/kk/fortran/alt
SSH_ASKPASS=/usr/lib/ssh/ssh-askpass
HOME=/home/grecio
PERLBREW_PATH=/home/grecio/perl5/perlbrew/bin:/home/grecio/perl5/perlbrew/perls/perl-5.20.1/bin
LC_CTYPE=es_ES.UTF-8
SSH_AGENT_PID=2166
HOST=FM134
XCURSOR_SIZE=0
XNLSPATH=/usr/share/X11/nls
XDG_SESSION_TYPE=x11
XDG_DATA_DIRS=/home/grecio/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
KONSOLE_DBUS_SESSION=/Sessions/2
XDG_SESSION_DESKTOP=KDE
PERL_MM_OPT=INSTALL_BASE=/home/grecio/perl5
PROFILEREAD=true
KONSOLE_DBUS_WINDOW=/Windows/1
GTK_MODULES=canberra-gtk-module
PERLBREW_BASHRC_VERSION=0.73
FROM_HEADER=
MAIL=/var/spool/mail/grecio
PERLBREW_HOME=/home/grecio/.perlbrew
LESSKEY=/etc/lesskey.bin
TERM=xterm-256color
SHELL=/bin/bash
KONSOLE_DBUS_SERVICE=:1.134
XDG_SESSION_CLASS=user
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
LS_OPTIONS=-N --color=tty -T 0
XCURSOR_THEME=Adwaita
XDG_CURRENT_DESKTOP=KDE
KONSOLE_PROFILE_NAME=Intérprete de órdenes
XDG_SEAT=seat0
SHLVL=4
COLORFGBG=15;0
LANGUAGE=
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
PRINTER=negra
MANPATH=/home/grecio/perl5/perlbrew/perls/perl-5.20.1/man:/usr/local/man:/usr/share/man
GTK_RC_FILES=/etc/gtk/gtkrc:/home/grecio/.gtkrc:/home/grecio/.config/gtkrc
WINDOWID=96468998
XSESSION_IS_UP=yes
LOGNAME=grecio
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
XAUTHORITY=/home/grecio/.Xauthority
INPUT_METHOD=fcitx
JRE_HOME=/usr/lib64/jvm/java-11-openjdk-11
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session2
QT_AUTO_SCREEN_SCALE_FACTOR=0
XDG_CONFIG_DIRS=/etc/xdg
PATH=/home/grecio/PROGRAMACION/mozart-oz/mozart2/bin:/home/grecio/perl5/perlbrew/bin:/home/grecio/perl5/perlbrew/perls/perl-5.20.1/bin:/home/grecio/PROGRAMACION/mozart-oz/mozart2/bin:/home/grecio/PROGRAMACION/mozart-oz/mozart2/bin:/home/grecio/PROGRAMACION/mozart-oz/mozart2/bin:/home/grecio/bin:/usr/local/bin:/usr/bin:/bin
JAVA_BINDIR=/usr/lib64/jvm/jre-11-openjdk/bin
KDE_SESSION_UID=1000
SDL_AUDIODRIVER=pulse
KDE_SESSION_VERSION=5
QT_IM_SWITCHER=imsw-multi
G_BROKEN_FILENAMES=1
HISTSIZE=1000
SESSION_MANAGER=local/FM134:@/tmp/.ICE-unix/2233,unix/FM134:/tmp/.ICE-unix/2233
PERLBREW_ROOT=/home/grecio/perl5/perlbrew
CPU=x86_64
CVS_RSH=ssh
LESSOPEN=lessopen.sh %s
GTK_IM_MODULE=fcitx
_=/usr/bin/printenv

Thanks again, Carmen

comentario nº1:

> I wasn't able to reproduce this with GNU Enscript 1.6.5.90:
>


> horizon:~/tmp/enscript/57965$ rm -f *.f; for n in P0_1  P0_2  P0_3  P0_4  P0_5  P1_1  P1_2  P1_3  P1_4  P1_5; do printf '        PROGRAM %s\n' "$n" >| ${n}.f; done; enscript -v -pfoo.ps *.f
> AFM: scanning path...
> AFM: reading font map "/usr/share/enscript/afm/font.map"
> processing file "P0_1.f"...
> processing file "P0_2.f"...
> processing file "P0_3.f"...
> processing file "P0_4.f"...
> processing file "P0_5.f"...
> processing file "P1_1.f"...
> processing file "P1_2.f"...
> processing file "P1_3.f"...
> processing file "P1_4.f"...
> processing file "P1_5.f"...
> [ 10 pages * 1 copy ] left in foo.ps


>
> Could you provide more specific instructions on how to reproduce this problem with a specific version of enscript?
>
> The thing that looks most strange about the symptoms you show is that you specified *.f and yet the files are not being processed in lexicographic order, either.
>
> Can you reproduce your problem with the shell configured with (for example) the "C" locale?
>


> $ LC_ALL=C
> $ export LC_ALL
> $ exec bash


>
>


carmen <carmengr>
Mon 31 May 2021 11:02:15 AM UTC, comment #2: 


comentario nº1:

> I wasn't able to reproduce this with GNU Enscript 1.6.5.90:
>


> horizon:~/tmp/enscript/57965$ rm -f *.f; for n in P0_1  P0_2  P0_3  P0_4  P0_5  P1_1  P1_2  P1_3  P1_4  P1_5; do printf '        PROGRAM %s\n' "$n" >| ${n}.f; done; enscript -v -pfoo.ps *.f
> AFM: scanning path...
> AFM: reading font map "/usr/share/enscript/afm/font.map"
> processing file "P0_1.f"...
> processing file "P0_2.f"...
> processing file "P0_3.f"...
> processing file "P0_4.f"...
> processing file "P0_5.f"...
> processing file "P1_1.f"...
> processing file "P1_2.f"...
> processing file "P1_3.f"...
> processing file "P1_4.f"...
> processing file "P1_5.f"...
> [ 10 pages * 1 copy ] left in foo.ps


>
> Could you provide more specific instructions on how to reproduce this problem with a specific version of enscript?
>
> The thing that looks most strange about the symptoms you show is that you specified *.f and yet the files are not being processed in lexicographic order, either.
>
> Can you reproduce your problem with the shell configured with (for example) the "C" locale?
>


> $ LC_ALL=C
> $ export LC_ALL
> $ exec bash


>
>

carmen <carmengr>
Fri 28 May 2021 09:50:56 AM UTC, comment #1: 

I wasn't able to reproduce this with GNU Enscript 1.6.5.90:


horizon:~/tmp/enscript/57965$ rm -f *.f; for n in P0_1  P0_2  P0_3  P0_4  P0_5  P1_1  P1_2  P1_3  P1_4  P1_5; do printf '        PROGRAM %s\n' "$n" >| ${n}.f; done; enscript -v -pfoo.ps *.f
AFM: scanning path...
AFM: reading font map "/usr/share/enscript/afm/font.map"
processing file "P0_1.f"...
processing file "P0_2.f"...
processing file "P0_3.f"...
processing file "P0_4.f"...
processing file "P0_5.f"...
processing file "P1_1.f"...
processing file "P1_2.f"...
processing file "P1_3.f"...
processing file "P1_4.f"...
processing file "P1_5.f"...
[ 10 pages * 1 copy ] left in foo.ps


Could you provide more specific instructions on how to reproduce this problem with a specific version of enscript?

The thing that looks most strange about the symptoms you show is that you specified *.f and yet the files are not being processed in lexicographic order, either.

Can you reproduce your problem with the shell configured with (for example) the "C" locale?


$ LC_ALL=C
$ export LC_ALL
$ exec bash



James Youngman <jay>
Fri 06 Mar 2020 04:55:08 PM UTC, original submission:  

Hi,

when converting all *.f files to a ps file using enscript,
in certaqin cases I get few of the files included more than one time. See the following example: the files P1_2.f, P1_3.f, P1_4.f
and P1_5.f are included twice.

fortran/kk> ls
P0_1.f  P0_2.f  P0_3.f  P0_4.f  P0_5.f  P1_1.f  P1_2.f  P1_3.f  P1_4.f  P1_5.f
fortran/kk> enscript -v -pfoo.ps *.f
AFM: scanning path...
AFM: reading font map "/usr/share/ghostscript/fonts/font.map"
AFM: reading font map "/usr/share/enscript/afm/font.map"
cargando la fuente "Courier-Bold"
cargando la fuente "Courier"
procesando el archivo "P1_2.f"...
procesando el archivo "P1_3.f"...
procesando el archivo "P1_4.f"...
procesando el archivo "P1_5.f"...
procesando el archivo "P0_1.f"...
procesando el archivo "P0_2.f"...
procesando el archivo "P0_3.f"...
procesando el archivo "P0_4.f"...
procesando el archivo "P0_5.f"...
procesando el archivo "P1_1.f"...
procesando el archivo "P1_2.f"...
procesando el archivo "P1_3.f"...
procesando el archivo "P1_4.f"...
procesando el archivo "P1_5.f"...
[ 19 páginas * 1 copias ] copiadas en foo.ps
fortran/kk>


carmen <carmengr>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by carmengr (Submitted the item)
  • -email is unavailable- added by carmengr
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-06 carmengr Carbon-Copy- Added carmengr

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code