bug-enscript
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-enscript] [bug #57965] the wildcard * for input files daes not work


From: carmen
Subject: [bug-enscript] [bug #57965] the wildcard * for input files daes not work properly?
Date: Mon, 31 May 2021 07:04:32 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #3, bug #57965 (project enscript):

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

[comment #1 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
> 
> 
> 


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57965>

_______________________________________________
  Mensaje enviado vía Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]